I\'m doing a small Java work on Binary Search Tree but when I\'m implementing the recursive insert of a node into the tree and display it, I don\'t get anything. I\'ve been on i
This sets the BST root and allow the class to work properly, change
if ( root == null ) { root = new BSTNode( elem ); }
to
if ( root == null ) { root = new BSTNode( elem ); if ( root.element != null ) { this.root = root; } }