public static String valueOf (char[] data)

Returns the string representation of the char array argument. The contents of the character array are copied; subsequent modification of the character array does not affect the newly created string.

data    a char array.

Returns:  a newly allocated string representing the same sequence of characters contained in the character array argument.