code: public static <T> List<T> makeList(T... items) {
      List<T> s = new ArrayList<T>(items.length);
      for (int i = 0; i < items.length; i++) {
        s.add(items[i]);
      }
      return s;
    }
docs: Returns a new List containing the given objects.