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

Syntax

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

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

Example

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


public class Main {
//from  ww w  . java  2  s  .c  om
   public static void main(String[] args) {
      char[] c = new char[] { 'j', 'b', 'c', 'd', 'e' };
      int index  = 0;

      int res = Character.codePointAt(c, index);
      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