静态数组的展示思维导图:
int[] [] arr = new int [] [] {{0},{1},{2}} ;
package cn.zzx.base.arrary;
/**
*
* 静态数组的初始化
*
*/
public class StaticArrary {
public static void main(String[] args) {
int[][] arr = new int[][] { { 1, 2, 3 }, { 2, 3, 4 }, { 3, 4, 5 } };
for (int i = 0; i < arr.length; i++) {
System.out.println();
for (int j = 0; j < arr.length; j++) {
System.out.println(arr[i][j]);
}
}
}
}