diff --git a/Baumy/src/Main.java b/Baumy/src/Main.java index 0dce6a7..ca6d336 100644 --- a/Baumy/src/Main.java +++ b/Baumy/src/Main.java @@ -1,9 +1,23 @@ public class Main { -public static void main(String[] args) +public static void main(String[] args) throws Exception { + Baum b1 = new Baum(); + b1.add(42); + b1.add(21); + b1.add(84); + b1.add(25); + b1.add(27); + + b1.add(11); + + b1.remove(21); + + b1.inorder(); + + System.out.println(b1.toString()); }