package array;标签:套娃,int,++,length,数组,多维,array,public From: https://www.cnblogs.com/xiaoxiaodeyan/p/17120306.html
public class duodszu {
public static void main(String[] args) {
int[][] array = {{2, 3}, {4, 5}}; //套娃
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array.length; j++)
System.out.println(array[i][j]);
}
}
}