import java.util.Scanner;
public class Eext {
public static void main(String[] args) {
//二维数组
int[][] arr = new int[3][]; //只确定一维数组的个数
for (int i = 0; i < arr.length; i++) { //遍历arr每个一维数组
//给每个一维数组开辟空间 new
//如果没有给一维数组 new 那么 arr[i] 就是 null
arr[i] = new int[i + 1];
//遍历一维数组 并给每个数组的每个元素赋值
for (int j = 0; j < arr[i].length; j++) {
arr[i][j] = i + 1;
}
}
//遍历arr
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < arr[i].length; j++) {
System.out.print(arr[i][j] + " ");
}
System.out.println();
}
}
}