| A stack.
A stack must provide the classical
Stack.push(Object) and
Stack.pop() operations, but may be also peekable
to some extent: it may provide just the
Stack.top() function,
or even a more powerful
Stack.peek(int) method that provides
access to all elements on the stack (indexed from the top, which
has index 0).
|