leet-code/src/main/java/com/mark/No_225_ImplementStackUsingQueue/MyStack.java
/** Push element x onto stack. */
Push element x onto stack.
Push element x onto stack .
public void push(int x) {
        queue.push(x);
        int size = queue.size();
        while (size-- > 1) {
            queue.push(queue.pop());
        }
    }
public void push ( int x ) { queue . push ( x ) ; int size = queue . size ( ) ; while ( size -- > 1 ) { queue . push ( queue . pop ( ) ) ; } }
Push element x onto stack.
Push element x onto stack .