Collections.sort(List<T> list, Comparator<? super T> c)方法
public static void main(String[] args) {
Double a =1.0;
Double c =3.0;
Double b = 2.0;
List<Double> es = Arrays.asList(a, c, b);
Collections.sort(es, new Comparator<Double>(){
@Override
.
原创
2022-04-11 10:55:10 ·
337 阅读 ·
0 评论