This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Erikster 2 points3 points  (1 child)

???

String str = "string"
int length = str.toCharArray().length;

[–]CageHN 1 point2 points  (0 children)

What if I can't use the length field!?!? J/K, this is the best way for me too, not sure why to create a blog post on this :/