Finding the length of a string
2 answers
If you cannot use methods String
to find the length String
, you can use reflection (Hint: String#length
returns a field count
). However, seeing that this is homework, I think you may have misunderstood the question you are being asked.
+2
source to share