Java之List排序出错

Java之List排序出错


Bound mismatch: The generic method sort(List<T>) of type Collections is not applicable for the arguments (List<Student>). 

The inferred type Student is not a valid substitute for the bounded parameter <T extends Comparable<? super T>>

原文地址:https://www.cnblogs.com/hzcya1995/p/13315293.html