code: public static List<Integer> asList(int[] array) {
      List<Integer> l = new ArrayList<Integer>();
      for (int i : array) {
        l.add(i);
      }
      return l;
    }
docs: needed because Arrays.asList() won't to autoboxing,
  so if you give it a primitive array you get a
  singleton list back with just that array as an element.