public String (char[] value, int offset, int count)

Allocates a new String that contains characters from a subarray of the character array argument. The offset argument is the index of the first character of the subarray and 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.

value     Array that is the source of characters
offset     The initial offset
count     The length

IndexOutOfBoundsException     If the offset and count arguments index characters outside the bounds of the value array