convert a string in a char array code example
Example 1: char array to string java
char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String str = new String(a);
Example 2: how to turn a character array into a string
char [] exampleCharArray = {'a', 'b', 'c'};
string exampleString = new string(exampleCharArray);