All Packages Class Hierarchy This Package Previous Next Index
Class optionCalc.BSTList
java.lang.Object
|
+----optionCalc.BSTList
- public class BSTList
- extends Object
-
BSTList()
- Do your initialization here.
-
Insert(KeyInterface)
- Searches the binary search tree for a node with
an equal key.
-
printList()
- Prints the BSTList Object
BSTList
public BSTList()
- Do your initialization here.
Insert
public Node Insert(KeyInterface k)
- Searches the binary search tree for a node with
an equal key. If one is not found, a new node
with key data k is inserted.
- Parameters:
- k - the (KeyInterface) data to insert
printList
public void printList() throws LinkListException
- Prints the BSTList Object
- Throws: LinkListException
- Thrown when the linked-list is empty.
All Packages Class Hierarchy This Package Previous Next Index