public class SuchTest { public static void main(String[] args) { String[] test = {"abc","Test","xaver","boing","123","weil","du","mich","mal","kannst","mal"}; Integer[] test2 = {7,1,13,1,613,137,2342,334,3242,223,234,2334,623,1341,12,12356,12,123}; SuchbaumInterface s = new Suchbaum(); int i = 0; while (i < test2.length) { System.out.println(s.size()); if (s.add(test2[i])) { System.out.println("OK"); } else { System.out.println("NE"); } i++; } System.out.println(s.height()); System.out.println("Loeschen:"+s.remove(2342)); System.out.println(s.height()); i = 0; Integer[] feld = new Integer[s.size()]; while (i < s.size()) { System.out.println(s.toArray(feld)[i]); i++; } i = 0; while (i < test2.length) { System.out.println(s.contains(test2[i])); i++; } } }