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