1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
|
/** Klasse, die einen Knoten des Baumes speichert */
protected static class Knoten<INHALT> {
/** Gespeichterte Daten */
protected INHALT daten;
/** Linker und rechter Sohn */
protected Knoten<INHALT> links, rechts;
/** Konstruktor fuer Knoten */
public Knoten(INHALT daten, Knoten<INHALT> links, Knoten<INHALT> rechts) {
this.daten = daten;
this.links = links;
this.rechts = rechts;
}
public suche (Knoten imBaum) {
....
...
}
|