package arrayAdd;
//将数组中元素从小到大排序
import java.util.Arrays;
public class Paixu {
public static void main(String[] args) {
int [] arr=new int [] {12,33,51,67,89,22,37};
Arrays.sort(arr);
for(int i=0;i<arr.length-1;i++) {
System.out.println(arr[i]);
}
}
}
Caballarii
慕娘9861664
相关分类