import btree.*; import java.io.*; public class testBTree { public static void main(String []args) { System.out.println("Creating a non-empty demo tree"); BSTree demo = new BSTree(-1); System.out.println("PreOrder Traversal of the demo tree"); demo.preorder_display(); System.out.println("Traversal completed"); System.out.println("Creating an empty tree"); BSTree t = new BSTree(); System.out.println("Created an empty tree"); System.out.println("PreOrder Traversal of the empty tree"); t.preorder_display(); System.out.println("Traversal completed"); System.out.println("Creating and traversing a forest of 40 empty trees"); BSTree[] forest= new BSTree[40]; for (int i=0; i< forest.length; i++) { forest[i] = new BSTree(); forest[i].preorder_display(); } System.out.println("exiting"); } }