charvalues from the surrogate ranges as undefined characters. For example,
false, even though this specific value if followed by any low-surrogate value in a string would represent a letter.
This noncompliant code example compliant solution corrects the problem with supplementary characters by using the integer form of the
Character.isLetter() method that accepts a Unicode code point as an
int argument. Java library methods that accept an
int value support all Unicode characters, including supplementary characters.