ArrayList的排序

来源:互联网 发布:火绒 windows defender 编辑:程序博客网 时间:2024/06/02 05:30
Collections.sort(tmp, new Comparator<Integer>() {                @Override                public int compare(Integer o1, Integer o2) {                    return o2 - o1;//表示降序,反之升序,傻傻分不清                }            });
0 0
原创粉丝点击