Java: Multi-dimensional array vs. One-dimensional.

Posted by Mikolan on Stack Overflow See other posts from Stack Overflow or by Mikolan
Published on 2010-03-24T23:04:59Z Indexed on 2010/03/24 23:13 UTC
Read the original article Hit count: 203

For example:

a) int [x][y][z] vs b) int[x*y*z]

Initially thought i'd go with a) for simplicity

I know that Java doesn't store arrays linearly in memory like C does. But what implications does this have for my program?

© Stack Overflow or respective owner

Related posts about java

Related posts about arrays