static int[] intArrayToPrimitive(Int[] l) { if (l == null) null; int n = l.length; int[] a = new[n]; for i to n: a[i] = l[i]; ret a; }