摘要: 1.Comparable接口 说明:可比较(可排序的) 例子:按照MyClass的y属性进行生序排序 2.Comparator接口 说明:迭代器,是sort函数的参数 例子:按照MyClass的x属性进行排序 3.Iterable接口 说明:可迭代,实现Iterable<T>接口之后,可以用Fore 阅读全文
posted @ 2016-11-21 17:11 疯狂的肉包 阅读(785) 评论(0) 推荐(0)