Java tutorial
public class Main { public static void main(String[] arg) { StringBuilder buffer = new StringBuilder("from java2s.com"); System.out.println(buffer.codePointCount(2, 3)); } }