예제 #1
0
 // default constructor
 public BST()
 {
     this.root = null;
 }
예제 #2
0
 public void setLeft(BSTNode newLeft)
 {
     this.left = newLeft;
 }
예제 #3
0
 public void setRight(BSTNode newRight)
 {
     this.right = newRight;
 }
예제 #4
0
 // parameterized constructor
 public BSTNode(int newData)
 {
     this.data  = newData;
     this.left  = null;
     this.right = null;
 }