案例:集合到文件(数据排序 )、

 例: 使用内部类排序类: new Comparator

 例2:使用继承Comparable 接口,重写compareTO 方法。

猜你喜欢

转载自www.cnblogs.com/gxtoo/p/12821246.html