public class MySortNew public static void main(String[] args) int [][] arr=for (int i = 0; i < arr.length; i++) System.out.print(getMax(arr[i])+" -----" +getMin(arr[i]));System.out.println();}}/*** 求数组中最大值* @param arr* @return*/public static int getMax(int[] arr) int max = Integer.MIN_VALUE;for(int i = 0; i < arr.length; i++) if(arr[i] > max)max = arr[i];}return max;}/*** 求数组中最小值* @param arr* @return*/public static int getMin(int[] arr) int min = Integer.MAX_VALUE;for(int i = 0; i < arr.length; i++) if(arr[i] < min)min = arr[i];}return min;} }试试应该OK的