|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A stack is an ordered list, where only the top element can be inspected or removed.
Stack
Field Summary | |
static String |
REVISION
|
Method Summary | |
void |
clear()
Removes all elements from this stack, making it empty. |
boolean |
isEmpty()
|
Object |
pop()
Removes the element on the top of this stack. |
void |
push(Object element)
Pushes a particular element on to the top of this stack. |
int |
size()
|
Object |
top()
|
Field Detail |
public static final String REVISION
Method Detail |
public int size()
public boolean isEmpty()
public Object top()
NoSuchElementException
- if there were no elements on this
stack.public void push(Object element)
element
- the element to push on to the top of this stack.public Object pop()
NoSuchElementException
- if there were no elements on this stack
to remove.public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |