public abstract class Stack
extends java.lang.Object
Constructor and Description |
---|
Stack() |
Modifier and Type | Method and Description |
---|---|
abstract Iterator |
iterator()
Returns an iterator of the values on this stack.
|
abstract java.lang.Object |
pop()
Removes the value at the top of this stack and returns that value as the value of this function.
|
abstract void |
push(java.lang.Object value)
Pushes a value onto the top of this stack.
|
abstract int |
size()
Returns the number of values on this stack.
|
public abstract void push(java.lang.Object value)
public abstract java.lang.Object pop()
EmptyStackException
- if this stack is empty.public abstract int size()
public abstract Iterator iterator()