Alle Methoden des Stapels Stack
- Konstruktor
- Erstellen eines leeren Stapel
new Stack()
- Methoden
- Wenn der Stapel leer ist
isEmpty(): Wahrheitswert
- Oberstes Element
top(): Inhaltstyp
- Neues Element auf den Stapel hinauflegen
push(inhalt: Inhaltstyp)
- Oberstes Element entfernen
pop(): Inhaltstyp