This tip shows the use of CharacterIterator to traverse through the String.

Java Code:
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;

public class CharacterIteratorExp {

	public static void main(String[] args) {
		CharacterIterator ci = new StringCharacterIterator("My Text");

		for (char ch = ci.first(); ch != CharacterIterator.DONE; ch = ci.next()) {
			System.out.println(ch);
		}

	}

}