Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 191 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 191 Bytes

sort

对象集合排序

通过对象实现Comparable接口

重写compareTo()函数

List list;

使得对象集合直接调用 Collections.sort(list);就可以对集合排序