I have the following class :
public class BinarySearchTree<Key extends Comparable<? super Key>, E>
{
private BTNode<Key, E> root;
int nodeCount;
/* Constructor */
public BinarySearchTree()
{
this.root = null;
this.nodeCount = 0;
}
...
I have no idea how to create an instance of it in my application though...
I have tried :
BinarySearchTree myTree = new BinarySearchTree();
and also,
BinarySearchTree<Integer> myTree = new BinarySearchTree<Integer>();
Any ideas are greatly welcomed!
BTNodedefined?