public void pop() {
		Queue q2 = new ArrayDeque();
		int n = q.size();
		for (int i = 0; i < n - 1; i++) {
			q2.offer(q.poll());
		}
		q.poll();
		while (!q2.isEmpty()) {
			q.offer(q2.poll());
		}
	}