@return the current character and advances the index
()
| 54 | |
| 55 | /** @return the current character and advances the index */ |
| 56 | public char next() { |
| 57 | if (isEOF()) { |
| 58 | throw new NoSuchElementException("Index " + mark + " is out of bounds " |
| 59 | + chars.length); |
| 60 | } |
| 61 | return chars[mark++]; |
| 62 | } |
| 63 | |
| 64 | /** @param num the number of characters to skip */ |
| 65 | public void skip(final int num) { |