1 public class TreeMain {
2
3 public static void main(String[] args){
4 BTree test1 = new BTree(new Node(3), new BTree(new Node(2)), new BTree(new Node(4)));
5 System.out.println(" TEST 1 IS ==> \n"+ test1.toString());
6 BTree test2 = new BTree(new Node(3),new BTree(new Node(1), new BTree(new Node(0)), new BTree(new Node(2))), new BTree(new Node(4)));
7
8 System.out.println(" TEST 2 IS ==> \n"+ test2.toString());
9 System.out.println(" TEST 1 HAS ==> \n"+ test1.numberOfNodes());
10 System.out.println(" TEST 2 HAS ==> \n"+ test2.numberOfNodes());
11 }
12 }
Generated with
vim2html
Copyright © 2003-2004 by Chip Cuccio
<http://norlug.org/~chipster/finger>