|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Stack
Stack interface.
| Method Summary | |
|---|---|
Object |
examine()
examine the item on the top of the stack |
boolean |
isEmpty()
test whether the stack is empty |
Object |
pop()
remove the item at the top of the stack |
void |
push(Object a)
insert an item on the top of the stack |
| Method Detail |
|---|
boolean isEmpty()
void push(Object a)
throws Overflow
a - the item to insert
Overflow
Object examine()
throws Underflow
Underflow - if the stack is empty
Object pop()
throws Underflow
Underflow - if the stack is empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||