Difference between List, List<?>, List<T>, List<E>, and List<Object>
The notation List<?> means "a list of something (but I''m not saying what)". Since the code in test works for any kind of object in the list, this works as a formal method parameter. Using a type parameter