We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
对象集合排序
通过对象实现Comparable接口
重写compareTo()函数
List list;
使得对象集合直接调用 Collections.sort(list);就可以对集合排序