A simple stack definition; restrictive in that you cannot access arbitrary stack elements.
| Method Summary | |
int |
height()
|
java.lang.Object |
pop()
|
void |
push(java.lang.Object o)
|
java.lang.Object |
top()
|
| Method Detail |
public int height()
public java.lang.Object pop()
throws java.util.NoSuchElementException
java.util.NoSuchElementExceptionpublic void push(java.lang.Object o)
public java.lang.Object top()
throws java.util.NoSuchElementException
java.util.NoSuchElementException