ArrayListStack
class represents a last-in-first-out (LIFO) stack of objects. It encapsulates class ArrayList with four operations that allow a list to be treated as a stack. The usual push and pop operations are provided, as well as a method to peek at the top item on the stack, and a method to test for whether the stack is empty When a stack is first created, it contains no items. @author Darpan Dinker, $Author: tcfujii $ @version $Revision: 1.4 $ on $Date: 2007/05/05 05:32:09 $
|
|