[Tutorials] 请教:java实现三维数组
Tofloor
poster avatar
嵩云闲人
deepin
2021-09-03 17:17
Author

操作系统:deepin     编程环境:java(版本16)

需要实现一个静态的动态三维数组,用ArrayList怎样实现?或者其他方法亦可。

请大神赐教。

Reply Favorite View the author
All Replies
嵩云闲人
deepin
2021-09-03 17:38
#1

没有熟悉java的高手吗?

Reply View the author
Jack
deepin
2021-09-03 18:19
#2

这个问题你为什么不查文档,或者到 CSDN,博客园等编程网站问呢?

Reply View the author
嵩云闲人
deepin
2021-09-03 18:25
#3
Jack

这个问题你为什么不查文档,或者到 CSDN,博客园等编程网站问呢?

查过啦,只搞得定二维的,三维的查不到。

Reply View the author
捕风
deepin
2021-09-03 18:30
#4

list塞进三次。

 

ArrayList x = new ArrayList()

ArrayList y = new ArrayList()

ArrayList z = new ArrayList()

x.add(y);

y.add(z)

Reply View the author
嵩云闲人
deepin
2021-09-03 19:09
#5
捕风

list塞进三次。

 

ArrayList x = new ArrayList()

ArrayList y = new ArrayList()

ArrayList z = new ArrayList()

x.add(y);

y.add(z)

怎么访问“z”数组中的数据?就卡在这里。

Reply View the author
houyawei
deepin
2021-09-03 23:14
#6

java版的numpy?

https://github.com/deepjavalibrary/djl

Reply View the author
捕风
deepin
2021-09-08 03:26
#7
嵩云闲人

怎么访问“z”数组中的数据?就卡在这里。

for循环依次遍历就好了

Reply View the author