import java.text.BreakIterator;
import java.util.Locale;
public class Main {
public static void main(String[] argv) throws Exception {
BreakIterator iterator = BreakIterator.getCharacterInstance(Locale.CANADA);
iterator.setText("aString");
for (int index = iterator.first(); index != BreakIterator.DONE; index = iterator.next()) {
System.out.println(index);
}
}
}