The codePointAt() method returns the Unicode value of the character at the specified index in a string. The index of the first character is 0, the second character is 1, and so on.
What is code point in Java?
Codepoint(1): Any value in the Unicode codespace; that is, the range of integers from 0 to 10FFFF16. In Java, a character ( char ) is an unsigned 16 bit value; i.e 0 to FFFF. As you can see, there are more Unicode codepoints that can be represented as Java characters.
How do you use Codepointcount?
NameDescriptionTypeendIndexthe index after the last char of the text range.int