string str[..] code example
Example 1: string java
String str = "abc";
Example 2: string java
char data[] = {'a', 'b', 'c'};
String str = new String(data);
String str = "abc";
char data[] = {'a', 'b', 'c'};
String str = new String(data);