get length of string j code example
Example 1: length of string in java
str.length();
Example 2: string length in java
String data = "Hello, World!";
int nameLength = data.length();
str.length();
String data = "Hello, World!";
int nameLength = data.length();