Source of 8.6.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0
  3: public boolean isEmpty()
  4: {
  5:    return (firstNode == null) && (lastNode == null);
  6: } // end isEmpty

  8: public void clear()
  9: {
 10:    firstNode = null;
 11:    lastNode = null;
 12: } // end clear