code: public Record nextRecord() throws NoSuchElementException, JournalException {
          if (!hasNext()) {
              String msg = "No current record.";
              throw new NoSuchElementException(msg);
          }
          close(lastRecord);
          lastRecord = record;
          record = null;
  
          return lastRecord;
      }
docs: Return the next record. If there are no more records, throws
  a <code>NoSuchElementException</code>. If an error occurs,
  throws a <code>JournalException</code>.
  
  @return next record
  @throws java.util.NoSuchElementException if there are no more records
  @throws JournalException if another error occurs