import java.util.*; import java.io.*; class QueueTest { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(new File(args[0])); Queue myQ = new Queue(); Thing t = null; while (scan.hasNext()) { int key = scan.nextInt(); String value = scan.next(); t = new Thing(key, value); myQ.add(t); } System.out.println("Contents of queue:"); myQ.print(); } // end of main() } // end of class QueueTest