public T dequeue() {
            if(B_.isEmpty()) {
                while(!A_.isEmpty()) {
                    B_.push(A_.pop());
                }
            }
            if(!B_.isEmpty()) {
                return B_.pop();
            }
            throw new RuntimeException("empty queue");
        }