27 lines
436 B
Java
27 lines
436 B
Java
|
|
public class BinBaum
|
|
{
|
|
// Attribute
|
|
Baumelement wurzel;
|
|
|
|
/**
|
|
* Konstruktor für Objekte der Klasse BinBaum
|
|
*/
|
|
public BinBaum()
|
|
{
|
|
this.wurzel = new Abschluss();
|
|
}
|
|
|
|
public void einfügen(Datenelement datenNeu_Deu_Eng) {
|
|
this.wurzel = this.wurzel.einfügen(datenNeu_Deu_Eng);
|
|
}
|
|
|
|
public Datenelement Suche(String suche){
|
|
return wurzel.Suche(suche);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|