Shift arrayList to the write by 1
private void shiftAll (ArrayList<Integer> t) {
		T last = t.get(t.size() - 1);

		for (int i = t.size() - 1; i > 0; i--) {
			t.set(i, t.get(i - 1));
		}

		t.set(0, last);
	}
Comments (0)