T - The element typepublic class ArrayStack<T> extends java.util.ArrayList<T> implements Stack<T>
Stack. The iteration order of the elements in this implementation is
least-recently-added to most-recently-added.| Constructor and Description |
|---|
ArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
T |
peek() |
T |
pop()
Removes and returns the element on the top of the stack.
|
void |
push(T value)
Pushes a value on the top of the stack.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, wait