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

Syntax

Character.codePointAt(char[] a, int index, int limit) has the following syntax.

public static int codePointAt(char[] a,  int index,  int limit)

Example

In the following code shows how to use Character.codePointAt(char[] a, int index, int limit) method.


public class Main {
   public static void main(String[] args) {
      char[] c = new char[] { 'a', 'b', 'c', 'd', 'e' };
      int index  = 1, limit = 3;
      int res = Character.codePointAt(c, index, limit);
     /*from  w  ww  .  j  ava 2s  .  c o m*/
      System.out.println( "Unicode code point is " + res );
   }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable