|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StackChar
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 |
|---|
boolean isEmpty()
void push(char a)
throws Overflow
a - the item to push
Overflow - if stack is full
char peek()
throws Underflow
Underflow - if the stack is empty
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 | ||||||||