Example usage for java.lang Character codePointAt

List of usage examples for java.lang Character codePointAt

Introduction

In this page you can find the example usage for java.lang Character codePointAt.

Prototype

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

Source Link

Document

Returns the code point at the given index of the char array, where only array elements with index less than limit can be used.

Usage

From source file:Main.java

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);

    System.out.println("Unicode code point is " + res);
}