摘要: 1.匿名对象 Collections.sort(names,new comparator<String>(){ public int compare(String a,String b){return b.compreTo(a);}}) Collections.sort(names,(String 阅读全文