code: private String getNextLine() {
      try {
        if (!this.linesSkiped) {
          for (int i = 0; i < skipLines; i++) {
            br.readLine();
          }
          this.linesSkiped = true;
        }
        String nextLine = br.readLine();
        if (nextLine == null) {
          hasNext = false;
        }
        return hasNext ? nextLine : null;
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
  
    }
docs: Reads the next line from the file.
  
  @return the next line from the file without trailing newline
  @throws IOException
  if bad things happen during the read