package day9_01_array; /* * 声明一个整数型二维数组并且遍历它 */ public class TwoDimensionalArraysTraversal { public static void main(String[] args){ int[][] a = new int[5][6]; for(int i = 0;i<a.length;i++){ for(int j = 0;j<a[i].length;j++){ System.out.print(a[i][j]+" "); } System.out.println(); } } }