|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The abstract data type stack.
Method Summary | |
boolean |
isEmpty()
Verifies if the stack is empty. |
java.lang.Object |
pop()
Retrieves an item and deletes it from the stack. |
void |
push(java.lang.Object el)
Stores an item on the stack. |
java.lang.Object |
top()
Retrieves the item from the stack head but doesn't remove it. |
Method Detail |
public void push(java.lang.Object el)
el
- the object to store.public java.lang.Object pop()
public java.lang.Object top()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |