|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Character queue interface.
| Method Summary | |
char |
dequeue()
remove the first item in the queue |
void |
enqueue(char a)
add a new item to the queue |
char |
examine()
examine the first item in the queue |
boolean |
isEmpty()
test whether the queue is empty |
| Method Detail |
public boolean isEmpty()
public void enqueue(char a)
a - the item to add
public char examine()
throws Underflow
Underflow - if the queue is empty
public char dequeue()
throws Underflow
Underflow - if the queue is empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||