Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java convert a char[] to string

char[] chars = { 'A', 'B', 'C', 'D', 'E', 'F' };

String str1 = String.valueOf(chars); //"ABCDEF"
String str2 = new String(chars);// "ABCDEF"

System.out.println(str1.equals(str2)); //"true"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #convert #string
ADD COMMENT
Topic
Name
9+7 =