Collections.sort(list,new Comparator<User>(){ public int compare(User arg0, User arg1) { return arg0.getPrice().compareTo(arg1.getPrice()); } });
添加回答
举报
0/150
提交
取消