static ArrayList intArrayToList(int[] a) { if (a == null) null; ArrayList l = new(a.length); for (int i : a) l.add(i); ret l; }