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