From 166d9b351b1c38729c23582e968e81d2beea8d05 Mon Sep 17 00:00:00 2001 From: ahmad Date: Thu, 22 Dec 2022 09:32:33 +0100 Subject: [PATCH] Main --- Baumy/src/Main.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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()); }