How do I know the length of a string?
Category: java.lang, viewed: 4K time(s).
To get the length of a text specified in a String object we can use the String.length method call. This method returns the string length as an int value. The length of the string is equals to the length of the sequence of characters represented by this string object.