import
java.util.*;public
class Te{
public static void main(String f[]){
int a[] = new int[] { 20, 44, 6, 1 }; Arrays.sort(a); for (int i = 0; i < a.length; i++){
System.out.println(a[i]);}
}
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23155850/viewspace-663940/ ,如需转载,请注明出处,否则将追究法律责任。