Java Character .codePointAt ( CharSequence seq, int index)

Syntax

Character.codePointAt(CharSequence seq, int index) has the following syntax.

public static int codePointAt(CharSequence seq,  int index)

Example

In the following code shows how to use Character.codePointAt(CharSequence seq, int index) method.


public class Main {
   public static void main(String[] args) {
      CharSequence seq = "Hello";
      int index  = 4;
      int res = Character.codePointAt(seq, index);
/* ww w .jav a2 s  . co m*/
      String str = "Unicode code point is " + res;

      System.out.println( str );
   }
}

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