//QueueMain contains the main() method that runs

public class CircularQueueMain
{
	public static void main( String [] args )
	{
		CircularQueue myQueue = new CircularQueue(5);
		
		System.out.println("Is the queue empty? " + myQueue.isEmpty());
		System.out.println();
		
		myQueue.add(1);
		myQueue.add(2);
		myQueue.add(5);
		myQueue.add(6);
		myQueue.add(9);
		
		myQueue.print();
		
		System.out.println();
		System.out.println("Is the stack empty? " + myQueue.isEmpty());
		System.out.println();
		
		System.out.println("Remove! " + myQueue.remove());
		System.out.println("Remove! " + myQueue.remove());
		System.out.println("Remove! " + myQueue.remove());
		
		System.out.println();
		System.out.println("Post-removal queue:");
		System.out.println();
		
		myQueue.print();
		
		myQueue.add(4);
		myQueue.add(8);
		myQueue.add(7);
		
		System.out.println();
		System.out.println("Post-adding queue:");
		System.out.println();
		
		myQueue.print();
	}
}