java.lang.Character.codePointBefore(char[ ] a, int index, int start)


java.lang.Character.codePointBefore(char[ ] a, int index, int start)

package com.codingdict;



import java.lang.*;



public class CharacterDemo {



   public static void main(String[] args) {



      // create a char array c

      char[] c = new char[] { 'A', 'b', 'C', 'd'};



      // create and assign value to index, start

      int index  = 3, start = 1;



      // create an int res

      int res;



      // assign result of codePointBefore on c at index to res using start

      res = Character.codePointBefore(c, index, start);



      String str = "Unicode code point is " + res;



      // print res value

      System.out.println( str );

   }

}