static MultiSet intArrayAsMultiSet(int[] a) { if (a == null) null; new MultiSet ms; for (int i : a) ms.add(i); ret ms; }