public void push(int x) {
		Stack<Integer> temp = new Stack<Integer>();
		while (!stack.isEmpty()) {
			temp.push(stack.pop());
		}
		stack.push(x);
		while (!temp.isEmpty()) {
			stack.push(temp.pop());
		}
	}