Arrays.sort()排序_System

/**
* Arrays.sort()排序
* 默认升序
*/
@Test
public void test(){
Integer[] result = {1,4,7,9};
Arrays.sort(result);
for (int i = 0;i<result.length;i++)
System.out.println(i);
}