@@ -0,0 +1,769 @@
+class MyQueue %7B%0A    // Push element x to the back of queue.%0A    private Stack%3CInteger%3E mainStack = new Stack();%0A    private Stack%3CInteger%3E assistant = new Stack();%0A    %0A    public void push(int x) %7B%0A        while(!assistant.empty()) mainStack.push(assistant.pop());%0A        mainStack.push(x);%0A    %7D%0A%0A    // Removes the element from in front of queue.%0A    public void pop() %7B%0A        while(!mainStack.empty()) assistant.push(mainStack.pop());%0A        assistant.pop();%0A    %7D%0A%0A    // Get the front element.%0A    public int peek() %7B%0A        while(!mainStack.empty()) assistant.push(mainStack.pop());%0A        return assistant.peek();%0A    %7D%0A%0A    // Return whether the queue is empty.%0A    public boolean empty() %7B%0A        return mainStack.empty() && assistant.empty();%0A    %7D%0A%7D%0A

Create Implement_Queue_using_Stacks.java