@@ -0,0 +1,552 @@
+import java.util.Stack;%0A %0Apublic class QueueWithTwoStacks %7B%0A    Stack%3CInteger%3E stack1 = new Stack%3CInteger%3E();%0A    Stack%3CInteger%3E stack2 = new Stack%3CInteger%3E();%0A     %0A    public void push(int node) %7B%0A        stack1.push(node);%0A    %7D%0A     %0A    public int pop() %7B%0A        if(!stack2.isEmpty())%7B%0A            return stack2.pop();%0A        %7D%0A        if(!stack1.isEmpty()&&stack2.isEmpty())%7B%0A            while(!stack1.isEmpty())%7B%0A                stack2.push(stack1.pop());   %0A            %7D%0A            return stack2.pop();%0A        %7D%0A        return -1;%0A    %7D%0A%7D%0A

Create QueueWithTwoStacks.java