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

Code Example 1

String string = String.valueOf(a);

Code Example 2

char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String str = new String(a);

Code Example 3

public class Demo {
   public static void main(String []args) {
      char[] arr = { 'p', 'q', 'r', 's' };
      String str = String.copyValueOf(arr, 1, 2);
      System.out.println(str);
   }
}

Learn ReactJs, React Native from akashmittal.com