import java.util.*;
public class Arraysort{

public static void main(String[]args){

int[]a={100,34,88,6,39,5};

System.out.println("排序前的数组为:");
   System.out.println(Arrays.toString(a));

Arrays.sort(a);

System.out.println("排序后的数组为:");
   System.out.println(Arrays.toString(a));
   }
}

Arraysort-LMLPHP

05-11 09:38