code: public static List<Integer> asList(int[] a) {
      List<Integer> result = new ArrayList<Integer>(a.length);
      for (int i = 0; i < a.length; i++) {
        result.add(Integer.valueOf(a[i]));
      }
      return result;
    }
docs: Utils for making collections out of arrays of primitive types.