|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--FixedStack
| Constructor Summary | |
FixedStack(int size)
Constructor. |
|
| Method Summary | |
int |
pop()
Print msg if stack is empty (underflow) |
void |
push(int item)
Print msg if stack is full (overflow) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FixedStack(int size)
size - maximum size of the stack. DO NOT EXCEED.| Method Detail |
public void push(int item)
push in interface IntStackitem - the thing to be pushedpublic int pop()
pop in interface IntStack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||