code: public String next() {
          if (!hasNext()) {
              throw new NoSuchElementException();
          }
          String result = nextLine;
          nextLine = null;
          fillNextLine();
          return result;
      }
docs: {@inheritDoc}