java.util
Class Stack

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.Vector
              extended by java.util.Stack
All Implemented Interfaces:
Serializable, Cloneable, Collection, List, RandomAccess


public class Stack
extends Vector

Stack of objects, as specified by the standard Java API.

Compliance: CLDC: 1.0 complete

Compliance: J2SE: 1.4 incomplete

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Stack()
           
 
Method Summary
 boolean empty()
           
 Object peek()
           
 Object pop()
           
 Object push(Object item)
           
 int search(Object o)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator, subList
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator, subList
 

Constructor Detail

Stack

public Stack()
Method Detail

empty

public boolean empty()

peek

public Object peek()

pop

public Object pop()

push

public Object push(Object item)

search

public int search(Object o)