All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.Vector | +----java.util.Stack
Stack
class represents a last-in-first-out
(LIFO) stack of objects.
public Stack()
public Object push(Object item)
item
argument.
public synchronized Object pop()
public synchronized Object peek()
public boolean empty()
true
if this stack is empty;
false
otherwise.
public synchronized int search(Object o)
-1
indicates that the
object is not on the stack.
All Packages Class Hierarchy This Package Previous Next Index