// default constructor public BST() { this.root = null; }
public void setLeft(BSTNode newLeft) { this.left = newLeft; }
public void setRight(BSTNode newRight) { this.right = newRight; }
// parameterized constructor public BSTNode(int newData) { this.data = newData; this.left = null; this.right = null; }