static L moveFirstToEnd(L l) { if (l(l) < 2) ret l; A a = l.get(0); l.remove(0); l.add(a); ret l; }