public static <E> void fillWithDefaults(ArrayList<E>, Class<? extends E> cl, int count) throws InstantiationException, IllegalAccessException{ for (int i = 0; i < count; i++) a.add(cl.newInstance());}