Answers for "how to convert an array of char to string in java"

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

Code answers related to "how to convert an array of char to string in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language