java.lang.Character.codePointAt(char[ ] a, int index, int limit)


java.lang.Character.codePointAt(char[ ] a, int index, int limit)

package com.codingdict;



import java.lang.*;



public class CharacterDemo {



   public static void main(String[] args) {



      // create a char array c and assign values

      char[] c = new char[] { 'a', 'b', 'c', 'd', 'e' };



      // create and assign value to inetgers index, limit

      int index  = 1, limit = 3;



      // create an int res

      int res;



      // assign result of codePointAt on array c at index to res using limit

      res = Character.codePointAt(c, index, limit);



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



      // print res value

      System.out.println( str );

   }

}