Implementing the Strings Cursor

Learn how to create a string cursor with the help of UTF8 string iterator.

Starting our traverse method implementation

Our abstract method should look familiar. Its signature contains the three values we have been using so far to make decisions about our text input when iterating character-by-character. Our abstract cursor will call this method at each position of the string and use its return value to decide whether or not to continue. We will now begin work on our traverse method:

Get hands-on with 1300+ tech skills courses.