Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {
        char[] c = new char[] { 'a', 'b', 'c', 'd', 'e' };

        int offset = 1, count = 3;

        int res = Character.codePointCount(c, offset, count);

        String str = "Number of Unicode code points is " + res;

        System.out.println(str);
    }
}