📄 unevenexample3.java
字号:
class UnevenExample3
{
public static void main( String[] arg )
{
// 声明并构造一个2维数组
int[ ][ ] uneven =
{ { 1, 9, 4 },
{ 0, 2},
{ 0, 1, 2, 3, 4 } };
// 数组的长度 (行数)
System.out.println("Length of array is: " + uneven.length );
// 数组每一行的长度(列数)
System.out.println("Length of row[0] is: " + uneven[0].length );
System.out.println("Length of row[1] is: " + uneven[1].length );
System.out.println("Length of row[2] is: " + uneven[2].length );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -