code: public T next() {
      if (nextToken == null) {
        nextToken = getNext();
      }
      T result = nextToken;
      nextToken = null;
      if (result == null) {
        throw new NoSuchElementException();
      }
      return result;
    }
docs: Returns the next token from this Tokenizer.
  
  @return the next token in the token stream.
  @throws java.util.NoSuchElementException
  if the token stream has no more tokens.