例如,我有许多 3x3 数组,我想将它们一起存储在一个数组中。这可能吗?如果是这样,我该怎么做呢?
最佳答案
简单地说:
int size = // ...
int[][][] array3d = new int[size][][];
// let's now store the arrays:
arrays3d[0] = some2darray;
// ...
关于java - 是否可以在一个数组中存储多个多维数组?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37035460/