| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDAT.LinkedList
public class LinkedList
A basic recursive (linked) list.
| Constructor Summary | |
|---|---|
LinkedList()
Create an empty list.  | 
|
| Method Summary | |
|---|---|
 void | 
delete()
Delete an object from the front of the list.  | 
 java.lang.Object | 
examine()
Examine the first item in the list.  | 
 void | 
insert(java.lang.Object x)
Insert an object at the front of the list.  | 
 boolean | 
isEmpty()
Test whether the list is empty.  | 
 java.lang.String | 
toString()
Construct a string representation of the list, based on the items' toString() methods, with each item on a new line.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public LinkedList()
| Method Detail | 
|---|
public boolean isEmpty()
public void insert(java.lang.Object x)
x - the object to insert
public java.lang.Object 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 | ||||||||