@@ -0,0 +1,313 @@
+import java.util.*;%0Aclass stack%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09Stack%3CInteger%3E st = new Stack%3CInteger%3E();%0A%09%09st.push(1);%0A%09%09st.push(2);%0A%09%09st.push(3);%0A%09%09st.push(4);%0A%09%09System.out.println(st.peek());%0A%09%09System.out.println(st.pop());%0A%09%09System.out.println(st.pop());%0A%09%09System.out.println(st.empty());%0A%09%09%0A%09%7D%0A%7D%0A

Create stack.java