import java.io.*;

class QueueTester {
	public static void main(String argv[]) throws IOException{
		char z;
		int i;
		ArrayQueue aq = new ArrayQueue();
		String input;
		DataInputStream dis = new DataInputStream(System.in);

		z = 'e';

		while (z != 'd') {
			System.out.println("a: add to queue");
			System.out.println("b: remove from queue");
			System.out.println("c: size of queue");
			System.out.println("d: quit");
			System.out.print("                        Enter Choice: ");
			input = dis.readLine();
			z = input.charAt(0);
			if (z == 'a') {
				System.out.print("                        Enter string: ");
				input = dis.readLine();
				aq.enqueue(input);
			} else 
			if (z == 'b') 
				System.out.println("                        Dequeued " + aq.dequeue());
			else if (z == 'c')
				System.out.println("                        Size is "+ aq.size());
		}
	}

}
