예제 #1
0
 public BinaryTree()
 {
     root = null;
 }
예제 #2
0
 public BinaryTree(int data)
 {
     root    = new BinaryNode(data);
     ammount = 1;
 }
예제 #3
0
 public void setLeftChild(BinaryNode newLC)
 {
     leftChild = newLC;
 }
예제 #4
0
 public void setRightChild(BinaryNode newLC)
 {
     rightChild = newLC;
 }
예제 #5
0
 public BinaryNode(int data)
 {
     this.data = data;
     leftChild = rightChild = null;
 }