|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by all stacks.
Method Summary | |
int |
pop()
Pop the stack. |
void |
push(int val)
Push an integer onto the stack. |
int |
size()
Return the number of elements contained in the stack. |
Method Detail |
public void push(int val)
val
- The integer value pushed onto the stack.public int pop()
public int size()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |