Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string length java

String yourName = "Ben";
int yourNameLength = yourName.length(); // 3

// String Length is counted as 1,2,3 and not from zero. 
// Results "BEN" = 3, "DAVID" = 5, etc.
 
PREVIOUS NEXT
Tagged: #string #length #java
ADD COMMENT
Topic
Name
2+8 =