I am working in Java and am wondering, are multi-dimensional arrays like grids where rows are elements and columns are dimensions, or are they hyper-geometric figures that we can't see?
3 Answers
Sometimes it's useful to think of multidimensional arrays as geometric: lists, tables, cubes. Other times, such as when the arrays aren't of equal length, it's not. They might be:
- lists of tables
- lists of lists of lists
- tables of cubes
At some (early) point it's time to make some classes.