all function of string in java code example
Example 1: string method example in java
public int length()
-----------------------
String x = "01234567";
System.out.println( x.length() ); // returns "8"
Example 2: string java
String str = "abc";
Example 3: string java
char data[] = {'a', 'b', 'c'};
String str = new String(data);