- 博客(1)
- 资源 (3)
- 收藏
- 关注
转载 list排序
用Collections.sort方法对list排序有两种方法 第一种是list中的对象实现Comparable接口,如下: /** * 根据order对User排序 */ public class User implements Comparable{ private String name; private Integer order; publ
2016-05-18 16:12:37 300
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人