public static void main(String[] args) { Queue q = new LinkedList(); q.add("Veronica"); q.add("Wallace"); q.add("Duncan"); showAll(q); } public static void showAll(Queue q) { q.add(new Integer(42)); while (!q.isEmpty()) System.out.print(q.remove() + " "); }