public class TestStack
{

public static void main (String args [])
{

   Stack myStack;
   Integer topValue;
	myStack = new Stack();
	
	for (int i = 0; i < 25; i++)
	{
	   myStack.push(i);
	}
	
	for (int i = 0; i < 25; i++)
	{
     topValue =	  (Integer) myStack.pop();
	  System.out.print (topValue + " ");
	}
	System.out.println ();
	
	topValue = (Integer) myStack.pop();
	System.out.println (topValue);  
} // end main
} // end class