?Collections.sort(list,new?Comparator<User>(){??????????????public?int?compare(User?arg0,?User?arg1)?{??????????????????return?arg0.getPrice().compareTo(arg1.getPrice());??????????????}??????????});?
這算是一個(gè)匿名內(nèi)部類嗎
Meng7y
2017-07-12 19:30:13