|
Java™ by example!
|
|
|
How do I determine the length of a String?
Use the length() method from the String class. The following example is self-explanatory:
 String s = "hello, world!"; System.out.println(s.length()); // prints out 13
|
Further Information
Author of answer: unknown
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|