Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java char array to string

    final char[] charArray = { 'g','e','e','k','s','f','o','r','g','e','e','k','s' };
    String string = new String(charArray);

	System.out.println(string);

	// -> "geeksforgeeks"
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #java #char #array #string
ADD COMMENT
Topic
Name
4+9 =