Java Character.codePointBefore (char[] a, int index, int start)
Syntax
Character.codePointBefore(char[] a, int index, int start) has the following syntax.
public static int codePointBefore(char[] a, int index, int start)
Example
In the following code shows how to use Character.codePointBefore(char[] a, int index, int start) method.
//w ww . ja v a 2 s. c o m
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.