Stack Interface
10/28/98
5
Ramamurthy
public void push(object item);
//Post: item is added to the top
public Object pop();
//Post: Top of the stack is removed
//and returned.
public Object peek();
//Post: Object at the top is returned.
public boolean empty();
// Return true if stack is empty
Previous slide
Next slide
Back to first slide
View graphic version