Specify erasure for type T:
public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> collection) {...}Specify erasure for type T:
public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> collection) {...}Create a free account to access the full topic