| Modifier and Type | Method and Description |
|---|---|
boolean |
empty() |
T |
peek()
Peek at the top of this Stack.
|
T |
pop()
Pop out the item at the top of this Stack.
|
T |
push(T item)
Push the item on the top of this Stack.
|
T push(T item)
item - of type TT peek() throws java.util.EmptyStackException
java.util.EmptyStackException - if this Stack is empty.T pop() throws java.util.EmptyStackException
java.util.EmptyStackException - if this Stack is empty.boolean empty()