function to convert an array to string code example
Example: array to string java
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);