Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

converting char array to string

// Convert char array to String in Java
class Util
{
    public static void main(String[] args)
    {
        char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ', 
                        'D', 'e', 'l', 'i', 'g', 'h', 't'};
 
        String string = new String(chars);
        System.out.println(string);
    }
}
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #converting #char #array #string
ADD COMMENT
Topic
Name
2+9 =