摘要: 同java一样: 在为对象数组进行排序时,比较器的作用非常明显,首先来讲解Comparable接口。 让需要进行排序的对象实现Comparable接口,重写其中的compareTo(T o)方法 The implementation of this method should return the 阅读全文
posted @ 2017-06-29 14:28 BandariFang 阅读(330) 评论(0) 推荐(0) 编辑