例:
Set<String> set = new TreeSet<>(new Comparator<String>(){
public int compare(String o1, String o2){
return -o1.compareTo(o2);
}
});
WrongAnswer
相关分类