|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--DAT.LinkedListChar
A basic recursive (linked) list of chars.
| Constructor Summary | |
LinkedListChar()
Create an empty list. |
|
| Method Summary | |
void |
delete()
Delete a character from the front of the list. |
char |
examine()
Examine the first item in the list. |
void |
insert(char c)
Insert a character at the front of the list. |
boolean |
isEmpty()
Test whether the list is empty. |
java.lang.String |
toString()
construct a sting representation of the list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LinkedListChar()
| Method Detail |
public boolean isEmpty()
public void insert(char c)
c - the character to insert
public char examine()
throws Underflow
Underflow - if the list is empty
public void delete()
throws Underflow
Underflow - if the list is emptypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||