本文翻译自:Syntax for creating a two-dimensional array
Consider: 考虑:
int[][] multD = new int[5][];
multD[0] = new int[10];
Is this how you create a two-dimensional array with 5 rows and 10 columns? 这是如何创建具有5行10列的二维数组吗?
I saw this code online, but the syntax didn't make sense. 我在网上看到了这段代码,但是语法没有意义。
#1楼
参考:https://stackoom.com/question/pJxV/用于创建二维数组的语法
#2楼
The most common idiom to create a two-dimensional array with 5 rows and 10 columns is: 创建具有5行10列的二维数组的最常见惯