Class AusnahmeKeller

java.lang.Object
  extended byAusnahmeKeller

public class AusnahmeKeller
extends java.lang.Object

Implementation eines Kellers unter Verwendung von eigenen Exceptions (Obacht: ohne Bezug auf das Interface Keller ! )


Nested Class Summary
private static class AusnahmeKeller.KellerEintrag
           
 
Field Summary
private  AusnahmeKeller.KellerEintrag top
           
 
Constructor Summary
AusnahmeKeller()
           
 
Method Summary
 boolean empty()
           
 void pop()
           
 void push(java.lang.Object x)
           
 java.lang.Object top()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

private AusnahmeKeller.KellerEintrag top
Constructor Detail

AusnahmeKeller

public AusnahmeKeller()
Method Detail

empty

public boolean empty()

push

public void push(java.lang.Object x)

top

public java.lang.Object top()
                     throws KellerFehler
Throws:
KellerFehler

pop

public void pop()
         throws KellerFehler
Throws:
KellerFehler