T - The element typepublic class ArrayStack<T> extends ArrayList<T> implements Stack<T>
Stack. The iteration order of the elements in this implementation is
least-recently-added to most-recently-added.modCount| 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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraycontainsAll, equals, hashCodeCopyright © 2018 Arno Unkrig. All rights reserved.