static void copyListPart(L a, int i1, L b, int i2, int n) { if (a == null || b == null) ret; for i to n: b.set(i2+i, a.get(i1+i)); }