/******************************  Knoten.java  ********************************/

/** Klasse Knoten mit einem Konstruktor und einer Methode zur Rueckgabe der
 *  String-Repraesentation des Knoteninhalts.  */

public class Knoten {
	
  public Object inhalt;                      // Knoteninhalt
  public Knoten links, rechts;               // linker, rechter Teilbaum
    
  public Knoten(Object x) {                  // konstruiere Knoten       
    inhalt = x;                              // mit Inhalt x
    links = rechts = null;                   // Nullzeiger fuer die Soehne
  }
  
  public String toString() {                 // fuer Ausgabe		
    return inhalt.toString();                // gebe Inhalt aus
  }
} 
