/** * Creates a new list and adds the element(s). * * @param element the item to add to the list * @return the new list */ public static <T> List<T> createList(T... element) { List<T> list = new ArrayList<T>(); fill(list, element); return list; }