|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Character stack interface.
| Method Summary | |
boolean |
isEmpty()
test whether the stack is empty |
char |
peek()
examine the top item of the stack |
char |
pop()
pop the top item off the stack |
void |
push(char a)
push a new item onto the stack |
| Method Detail |
public boolean isEmpty()
public void push(char a)
throws Overflow
a - the item to push
Overflow - if stack is full
public char peek()
throws Underflow
Underflow - if the stack is empty
public char pop()
throws Underflow
Underflow - if stack is empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||