All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class optionCalc.BSTList

java.lang.Object
   |
   +----optionCalc.BSTList

public class BSTList
extends Object

Constructor Index

 o BSTList()
Do your initialization here.

Method Index

 o Insert(KeyInterface)
Searches the binary search tree for a node with an equal key.
 o printList()
Prints the BSTList Object

Constructors

 o BSTList
 public BSTList()
Do your initialization here.

Methods

 o 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
 o 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