|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Stack of integers.
| Method Summary | |
boolean |
isEmpty()
Returns true if this stack is empty, false elsewhere. |
int |
pop()
Pops a value at the top of the stack and returns it. |
void |
push(int value)
Adds a given Object to the top of this stack. |
| Method Detail |
public boolean isEmpty()
public void push(int value)
value - an integer.public int pop()
java.lang.IllegalStateException - if the stack is empty.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||