|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Required methods for the Stack ADT.
Method Summary | |
boolean |
isEmpty()
Returns whether or not this is empty. |
Object |
pop()
Removes and returns the top object on this. |
void |
push(Object anObject)
Pushes the given object onto this. |
int |
size()
Returns the number of objects on this. |
Object |
top()
Returns the top object on this. |
Method Detail |
public void push(Object anObject)
anObject
- object to pushpublic Object pop()
public Object top()
public int size()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |