//二维数组排序 int[][] seq_int = { {1,342,54,24,545}, {4,5433,75,53,775}, {2,62,73,7445,673}, {6,90,954,193,2012} }; for(int[] row : seq_int){ Arrays.sort(row); } System.out.println(Arrays.deepToString(seq_int));
output: [[1,
24, 54, 342, 545], [4, 53, 75, 775, 5433], [2, 62, 73, 673, 7445], [6, 90, 193,
954, 2012]]
原文:http://www.cnblogs.com/xiaocaimiao/p/3557092.html