java中Collections.sort() 排序函数的用法
java中Collections.sort() 排序函数的用法
Posted on 2009-04-07 16:40
landor 阅读(24937)
评论(4) 编辑 收藏 所属分类:
java
用Collections.sort方法对list排序有两种方法
第一种是list中的对象实现Comparable接口,如下:
/**
* 根据order对User排
转载
2015-06-11 16:01:31 ·
648 阅读 ·
0 评论