import java.util.*; public class queueDriver { public static void main(String[] args) //takes a seed for the random number generator, inserts random Integers into the queue, and then dequeues them one by one to print them out { Random g = new Random(Integer.parseInt(args[0])); myArrayQueue queue = new myArrayQueue(); //myLinkedQueue queue = new myLinkedQueue(); for(int x = 1; x <= 20; x++) { queue.enqueue(g.nextInt() % 20); } while(!queue.isEmpty()) { System.out.println(queue.dequeue()); } } }