code: public static <T> List<T> arrayToList(T [] array) {
          return new ArrayList<T>(Arrays.asList(array));
      }
docs: Convenience method for building a list from an array
  @param array
  @param <T> list type
  @return a new list created from var args