Source of 6.5.java


  1: public T pop()
  2: {
  3:    T top = peek();  // Might throw EmptyStackException
  4: 
  5:    assert (topNode != null);
  6:    topNode = topNode.getNextNode();
  7: 
  8:    return top;
  9: } // end pop
 10: // Version 4.0