Java CharacterIterator is an interface that allows for iterating over the characters in a string or other sequence of characters. It is designed for use in classes like Java String or Java StringBuffer to traverse individual characters in a sequence without exposing internal data structures. Introduced in Java 2004 with Java 5, CharacterIterator is useful for text processing applications that need to efficiently access and manipulate character sequences.
https://docs.oracle.com/javase/8/docs/api/java/text/CharacterIterator.html