1.二维数组,即一维护 int[][] arr1 = new int[3][2]; int[][] arr2 ={{2,4,3,6,22,7},{3,6,8,9},{10,13,24,5}}; public static void showArray(int arr[][]){ for(int x=0;x<arr.length;x++){ for(int y=0;y<arr[x].length;y++){ System.out.println(arr[x][y]); } } } 2.封装:程序…