neue Methoden hizugefügt
This commit is contained in:
23
BinBaum.java
23
BinBaum.java
@@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
public class BinBaum
|
||||
{
|
||||
// Attribute
|
||||
@@ -19,6 +20,28 @@ public class BinBaum
|
||||
public Datenelement Suche(String suche){
|
||||
return wurzel.Suche(suche);
|
||||
}
|
||||
|
||||
public int HöheGeben(){
|
||||
return wurzel.HöheGeben()-1;
|
||||
}
|
||||
|
||||
public boolean IstVorhanden(String Testwort){
|
||||
return wurzel.IstVorhanden(Testwort);
|
||||
}
|
||||
|
||||
public int TiefeGeben(String suche){
|
||||
return wurzel.TiefeGeben(suche);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void TestwerteEinfügen(){
|
||||
einfügen(new Wortpaar("test","test"));
|
||||
einfügen(new Wortpaar("hallo","hello"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user