定义一个类似的类 List<T> randomList;这意味着我们可以创建一个MyRandomListComparableStudent> l = new MyRandomList<ComparableStudent>();public class ComparableStudent implements Comparable<ComparableStudent>{
语法不应该是
假设我们有{ public int compareTo(Fruit o) { returnString args[]) function(new Apple()); // this shouldn't work because Apple is implementing Comparable<Fruit>, not Comparable<