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