Online Java Compiler By
JavaTpoint.com
public class CharactercodePointCountMethodExample1 { public static void main(String[] args) { System.out.println("Welcome to our tutorial site:"); CharSequence seq = "Hello"; // Declare offset. int offset = 2; // Declare count. int countValue = 4; int result = Character.codePointCount(seq, offset, countValue); // Print the result. System.out.println("The result is given as: " + result); } }
Output