from char[] to String java code example
Example 1: convert char to string java
char c = 'a';
String s = Character.toString(c);
//s == "a"
Example 2: char array to string java
char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String str = new String(a);