All Packages Class Hierarchy This Package Previous Next Index
Class optionCalc.LinkList
java.lang.Object
|
+----optionCalc.LinkList
- public class LinkList
- extends Object
-
LinkList()
- Constructs a LinkList object, initially the
list will be empty (head == null)
-
Insert(KeyInterface)
- Inserts a new node into the list with the key data
if a node with equal key data does not already exist
-
printList()
- Prints the LinkList Object
LinkList
public LinkList()
- Constructs a LinkList object, initially the
list will be empty (head == null)
Insert
public Node Insert(KeyInterface k)
- Inserts a new node into the list with the key data
if a node with equal key data does not already exist
- Parameters:
- k - the (Key) data to insert
printList
public void printList() throws LinkListException
- Prints the LinkList Object
- Throws: LinkListException
- Thrown when the linked-list is empty.
All Packages Class Hierarchy This Package Previous Next Index