List of usage examples for java.lang Character offsetByCodePoints
public static int offsetByCodePoints(CharSequence seq, int index, int codePointOffset)
From source file:Main.java
public static void main(String[] args) { CharSequence seq = "Hello World"; int res = Character.offsetByCodePoints(seq, 3, 8); String str = "The index within the char sequence seq is " + res; System.out.println(str);//from w ww . j a va 2 s . c om }