public interface Stack<E>
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
E |
peek()
Look at last value without removing it.
|
E |
pop()
Get the last value, removing it from the stack.
|
void |
push(E obj)
Put a new last value onto the stack.
|