Interface IntStack

All Known Implementing Classes:
DynamicStack, FixedStack

public interface IntStack

Basic interface for a stack of integers. Implementors must do all the work.


Method Summary
 int pop()
          Pops the topmost item from the stack.
 void push(int item)
          Pushes an item onto the stack.
 

Method Detail

push

public void push(int item)
Pushes an item onto the stack. Overflow is handled by implementation.

Parameters:
item - the thing to be pushed

pop

public int pop()
Pops the topmost item from the stack. Underflow is handled by the implementation.

Returns:
the topmost items