标签: java multidimensional-array
int arr[][] = new int[3][4]; int row[] = {1,2,3,4}; arr[0] = {1,2,3,4}; // why this doesn't work? arr[0] = row; //when this line works
在上面的代码中,为什么我们无法直接使用{1,2,3,4}初始化数组行(line3)。
{1,2,3,4}
line3