Stack (Java SE 10 & JDK 10 )
-
-
Field Summary
-
Fields declared in class java.util.AbstractList
modCount
-
Fields declared in class java.util.Vector
capacityIncrement, elementCount, elementData
-
-
Constructor Summary
Constructors Constructor Description Stack()Creates an empty Stack.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanempty()Tests if this stack is empty.
Epeek()Looks at the object at the top of this stack without removing it from the stack.
Epop()Removes the object at the top of this stack and returns that object as the value of this function.
Epush(E item)Pushes an item onto the top of this stack.
intsearch(Object o)Returns the 1-based position where an object is on this stack.
-
Methods declared in interface java.util.Collection
parallelStream, stream
-
Methods declared in class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, spliterator, subList, toArray, toArray, toString, trimToSize
-
-