Character.codePointAt(CharSequence seq, int index) has the following syntax.
public static int codePointAt(CharSequence seq, int index)
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); /*from ww w.java 2s. c om*/ String str = "Unicode code point is " + res; System.out.println( str ); } }
The code above generates the following result.