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
  • 23,461
  • 7
  • 54
  • 77
Gilgamesz
  • 4,328
  • 3
  • 23
  • 53

0 Answers0