Answers for "convert a char array to string"

13

char array to string java

char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String str = new String(a);
Posted by: Guest on June-15-2020
1

java put a char array into a string

char[] arr = { 'p'," ",'q', 'r', 's' };
      String str = String.valueOf(arr);
      System.out.println(str);//"p qrs"
Posted by: Guest on March-20-2020

Code answers related to "convert a char array to string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language