Java tutorial
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); } }