Code example for CharacterIterator

Methods: getBeginIndex, getEndIndex, getIndex, setIndex