Character.codePointBefore(char[] a, int index, int start) has the following syntax.
public static int codePointBefore(char[] a, int index, int start)
In the following code shows how to use Character.codePointBefore(char[] a, int index, int start) method.
/*from w w w . j a va2 s . c om*/ public class Main { public static void main(String[] args) { char[] c = new char[] { 'A', 'b', 'C', 'd'}; int index = 3, start = 1; int res = Character.codePointBefore(c, index, start); String str = "Unicode code point is " + res; System.out.println( str ); } }
The code above generates the following result.