Java Reference
In-Depth Information
In addition, the StringBuilder and StringBuffer classes define the ap-
pendCodePoint method that takes an int representing an arbitrary
Unicode character, encodes it as a surrogate pair if needed, and ap-
pends it to the end of the buffer. Curiously, there is no corresponding
insertCodePoint method.
Finally, the String class also provides the following constructor:
public String(int[] codePoints, int start, int count)
Constructs a new String with the contents from
codePoints[start] up to a maximum of count code points,
with supplementary characters encoded as surrogate pairs as
needed. If any value in the array is not a valid Unicode code
point, then IllegalArgumentException is thrown.
When ideas fail, words come in very handy.
Johann Wolfgang von Goethe
 
Search WWH ::




Custom Search