天天看点

java多条件优先级排序 --- Comparator

1、comparator

  collections.sort(list<t> list, comparator<? super t> c) ;

  2、t实现了comparable 接口

  collections.sort(list<t> list);