Source of 6.19.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0
  3: public T pop()
  4: {
  5:    checkInitegrity();
  6:    if (isEmpty())
  7:       throw new EmptyStackException();
  8:    else
  9:       return stack.remove(stack.size() - 1);
 10: } // end pop