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. |
IndexOutOfBoundsException | if offset is
negative, or count is negative, or
offset+count is larger than
data.length. |
Diagram: String