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 char |
pop()
Removes the value at the top of this stack and returns that value as the value of this function.
|
abstract void |
push(char 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(char value)
public abstract char pop() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public abstract int size()
public abstract Iterator iterator()