Java Character .codePointAt ( CharSequence seq, int index)
Syntax
Character.codePointAt(CharSequence seq, int index) has the following syntax.
public static int codePointAt(CharSequence seq, int index)
Example
In the following code shows how to use Character.codePointAt(CharSequence seq, int index) method.
public class Main {
public static void main(String[] args) {
CharSequence seq = "Hello";
int index = 4;
int res = Character.codePointAt(seq, index);
/* ww w .jav a2 s . co m*/
String str = "Unicode code point is " + res;
System.out.println( str );
}
}
The code above generates the following result.