Arrays.sort() //Arrays类sort方法,作用:数组升序
Arrays.toString() //Arrays类toString方法,作用:数组内容的字符串表示形式
package com.wang.array;
import java.util.Arrays;
public class Demo08 {
public static void main(String[] args) {
int[] a = {8,9,4,7,0,5,7};
Arrays.sort(a);
System.out.println(Arrays.toString(a));
}
}
标签:sort,25,Arrays,toString,数组,public
From: https://www.cnblogs.com/PedroPascal/p/17098056.html