@@ -0,0 +1,323 @@
+import java.util.*;%0Aclass QueueDemo%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09Queue%3CInteger%3E st = new LinkedList%3CInteger%3E();%0A%09%09st.add(1);%0A%09%09st.add(2);%0A%09%09st.add(3);%0A%09%09st.add(4);%0A%09%09System.out.println(st.peek());%0A%09%09System.out.println(st.remove());%0A%09%09System.out.println(st.remove());%0A%09%09System.out.println(st.peek());%0A%09%09%0A%09%7D%0A%7D%0A

Create queue.java