//StackMain contains the main() method that runs

public class StackMain
{
	public static void main( String [] args )
	{
		Stack myStack = new Stack(5);
		
		System.out.println("Is the stack empty? " + myStack.isEmpty());
		System.out.println();
		
		myStack.push(1);
		myStack.push(2);
		myStack.push(5);
		myStack.push(6);
		
		myStack.print();
		
		System.out.println("Is the stack empty? " + myStack.isEmpty());
		System.out.println();
		
		System.out.println("Pop! " + myStack.pop());
		System.out.println("Pop! " + myStack.pop());
		
		System.out.println();
		
		System.out.println("Post-pop stack:");
		
		myStack.print();
	}
}