java.lang.Character.codePointBefore(CharSequence seq, int index)


java.lang.Character.codePointBefore(CharSequence seq, int index)

package com.codingdict;



import java.lang.*;



public class CharacterDemo {



   public static void main(String[] args) {



      // create a CharSequence seq and assign value

      CharSequence seq = "Hello";



      // create and assign value to index

      int index  = 4;



      // create an int res

      int res;



      // assign result of codePointBefore on seq at index to res

      res = Character.codePointBefore(seq, index);



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



      // print res value

      System.out.println( str );

   }

}