FileDocCategorySizeDatePackage
Stack2.javaAPI DocExample584Sat Sep 12 03:01:00 BST 1998None

Stack2

public class Stack2 extends Object
Using a Vector as the underlying Sequence.
see
com.objectspace.jgl.util.util.Stack
version
3.0.0
author
ObjectSpace, Inc.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    // Use a Array as the underlying data structure.
    Stack stack = new Stack( new Array() );
    stack.push( "bat" );
    stack.push( "cat" );
    stack.push( "dog" );

    System.out.println( "Print the Stack." );
    System.out.println( stack );