turning an array to a sting code example
Example 1: array to string java
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);
Example 2: java srting array to string
Arrays.toString(charArr);
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);
Arrays.toString(charArr);