commit 71992422a42e3e11bd33f213522026784fe18bce Author: david <@> Date: Wed Feb 8 11:10:23 2023 +0100 Initial sharing of project diff --git a/Binärbaum.java b/Binärbaum.java new file mode 100644 index 0000000..84ddf2f --- /dev/null +++ b/Binärbaum.java @@ -0,0 +1,28 @@ + +/** + * Beschreiben Sie hier die Klasse binärbaum. + * + * @author (Ihr Name) + * @version (eine Versionsnummer oder ein Datum) + */ +public class Binärbaum +{ + //Attribute + public Object wert; + public Binärbaum links; + public Binärbaum rechts; + + //Konstruktoren + //Konstruktoren für ein Blatt + + //Konstruktor für inneren Knoten + + public void einfügen(int [] Anzahl){ + for(int i =0 ; i= 1){ + Node n = new Node((char)(i + 65), Anzahl[i]) ; + + } + } +} +} diff --git a/List.java b/List.java new file mode 100644 index 0000000..6622d9a --- /dev/null +++ b/List.java @@ -0,0 +1,18 @@ + +/** + * Beschreiben Sie hier die Klasse List. + * + * @author (Ihr Name) + * @version (eine Versionsnummer oder ein Datum) + */ +public class List +{ + public static int [] zählen(String text){ + int[] Anzahl = new int[26]; + for(int i = 0; i