Collections.sort(list,new Comparator<User>(){
public int compare(User arg0, User arg1) {
return arg0.getPrice().compareTo(arg1.getPrice());
}
});
黄小凡
相关分类