1 int[] x={1,6,4,8,6,9,12,32,76,34,23};
升序:
1 Arrays.sort(x);
降序:
1 resort(x);2 public int[] resort(int[] num){3 Arrays.sort(num);4 int[] resort=new int[num.length];5 for(int j=0;j
本文共 241 字,大约阅读时间需要 1 分钟。
1 int[] x={1,6,4,8,6,9,12,32,76,34,23};
升序:
1 Arrays.sort(x);
降序:
1 resort(x);2 public int[] resort(int[] num){3 Arrays.sort(num);4 int[] resort=new int[num.length];5 for(int j=0;j
转载于:https://www.cnblogs.com/dflmg/p/6365590.html