Two dimensional array with different lengths (Java)

前端 未结 2 1388
清酒与你
清酒与你 2021-01-23 08:34

Is there an opportunity to create two dimensional Arrays with different lengths in the second dimension? For example like this:

[true] [true] [true]

[true]

2条回答
  •  清歌不尽
    2021-01-23 08:48

    Java does not have 2-dimensional arrays.

    Java has 1-dimensional arrays whose elements can be any primitive or reference type - including other arrays.

提交回复
热议问题