/** * Shift the cursor to the next occurrence of {@code ch} and returns * {@code true}. Otherwise, it will keep the cursor at same position, but * will return {@code false}. * * @param ch * @return */ public boolean shiftCursorToNextChar( final char ch ) { mark(); while ( hasNext() ) if ( next() == ch ) return true; flip(); return false; }