// CSE 143, Winter 2012 // This client program demonstrates the usage of the TreeSet class. public class TreeMain { public static void main(String[] args) { TreeSet tree = new TreeSet(); tree.add(55); tree.add(29); tree.add(87); tree.add(-3); tree.add(42); tree.add(60); tree.add(61); tree.add(62); tree.add(63); tree.add(91); tree.print(); System.out.println(); System.out.println(tree.contains(29)); System.out.println(tree.contains(55)); System.out.println(tree.contains(63)); System.out.println(tree.contains(35)); tree.remove(91); tree.remove(29); tree.remove(55); System.out.println(tree.contains(29)); } }