public class Client { public static void main(String[] args) { BST tree = new BST(); System.out.println(); System.out.println("Is BST? " + tree.isBST()); int[] tests = {5, 0, 1, 2, 4, 9, 8}; for (int value : tests) { tree.add(value); } tree.printTree(); tree.removeLeaves(); tree.printTree(); /* for (int value : tests) { System.out.println("Removed " + value); tree.remove(value); tree.printTree(); } */ } }