Allocates a new String
that contains characters from a subarray
of the Unicode code point array
argument. The offset
argument is the index of the first code
point of the subarray and the count
argument specifies the
length of the subarray. The contents of the subarray are converted to
char
s; subsequent modification of the int
array does not
affect the newly created string.
codePoints
| Array that is the source of Unicode code points | |
offset
| The initial offset | |
count
| The length |
IllegalArgumentException
| If any invalid Unicode code point is found in
codePoints | |
IndexOutOfBoundsException
| If the offset and count arguments index
characters outside the bounds of the codePoints array |
Diagram: String