1、comparator
collections.sort(list<t> list, comparator<? super t> c) ;
2、t實作了comparable 接口
collections.sort(list<t> list);
1、comparator
collections.sort(list<t> list, comparator<? super t> c) ;
2、t實作了comparable 接口
collections.sort(list<t> list);