Check out example codes for "converting char array to string". It will help you in understanding the concepts better.

Code Example 1

String string = String.valueOf(a);

Code Example 2

// Convert char array to String in Java
class Util
{
    public static void main(String[] args)
    {
        char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ', 
                        'D', 'e', 'l', 'i', 'g', 'h', 't'};
 
        String string = new String(chars);
        System.out.println(string);
    }
}

Learn ReactJs, React Native from akashmittal.com