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

Code Example 1

char[] arr = { 'p'," ",'q', 'r', 's' };
      String str = String.valueOf(arr);
      System.out.println(str);//"p qrs"

Learn ReactJs, React Native from akashmittal.com