1: public boolean isEmpty() 2: { 3: return (firstNode == null) && (lastNode == null); 4: } // end isEmpty 5: 6: public void clear() 7: { 8: firstNode = null; 9: lastNode = null; 10: } // end clear 11: // Version 4.0