T extends Comparable<T> 最关键的是传入的T类型必须已经是实现了Comparable接口中compareTo()这个方法。 这种语法中,implements和extends统一写成extends。