// A simple test program for stacks

public final class TestStackAr
{
    public static void main( String [ ] args )
    {
        Stack s = new StackAr( );

        for( int i = -5; i < 10; i++ )
            s.push( new Integer( i ) );

        System.out.print( "Here is your contents:" );
        try
        {
            for( ; ; ) 
                System.out.print( " " + s.topAndPop( ) );
        }
        catch( Exception e ) { }
        System.out.println( );
    }
}

