public static String valueOf (char[] data, int offset, int count)

Returns the string representation of a specific subarray of the char array argument.

The offset argument is the index of the first character of the subarray. The count argument specifies the length of the subarray. The contents of the subarray are copied; subsequent modification of the character array does not affect the newly created string.

data    the character array.
offset    the initial offset into the value of the String.
count    the length of the value of the String.

Returns:  a string representing the sequence of characters contained in the subarray of the character array argument.

IndexOutOfBoundsException    if offset is negative, or count is negative, or offset+count is larger than data.length.