6
public static <T extends Comparable<? super T>> T max(List<? extends T> coll){
    // return max;
}

I see why <T extends Comparable<? super T>> makes a sense. But, I am not sure why an argument List<? extends T> coll is important.

Why List<T> coll is not sufficient?

Zabuzard
  • 25,064
  • 8
  • 58
  • 82
Gilgamesz
  • 4,727
  • 3
  • 28
  • 63

0 Answers0