http://www.danzig.us/java_

Solved

Posted on 2011-05-11

I understand what an array is.. and what a matrix is too.. but if you add a third array in there i'm quite confused on how it works.

Row and Column are pretty much self explanatory.. but I don't think it becomes a 3d array with a third? Because technically it's all just a big 1-D array ?

Can someone explain this to me in laymans terms? Or link me to something that explains this? I tried searching google without much success. Thanks

Row and Column are pretty much self explanatory.. but I don't think it becomes a 3d array with a third? Because technically it's all just a big 1-D array ?

Can someone explain this to me in laymans terms? Or link me to something that explains this? I tried searching google without much success. Thanks

10 Comments

Seems to b raesonable explanation

http://www.danzig.us/java_class/dimensions.html

http://www.danzig.us/java_

And this one

http://math.hws.edu/eck/cs124/javanotes3/c8/s5.html

http://math.hws.edu/eck/cs

```
Three-dimensional arrays are treated similarly. For example, a three-dimensional array of ints could be created with the declaration statement "int[][][] B = new int[7][5][11];". It's possible to visualize the value of B as a solid 7-by-5-by-11 block of cells. Each cell holds an int and represents one position in the three-dimensional array. Individual positions in the array can be referred with variable names of the form B[i][j][k]. Higher-dimensional arrays follow the same pattern, although for dimensions greater than three, there is no easy way to visualize the structure of the array.
this is from my secomnd link - seesm undesratnadable
```

This has a good illustration of initilization of three-dimensional array:

http://www.velocityreviews

Not so easy to understand, but still

no, its an array of 2d arrays

ie. its an array of (array of arrays) :)

By clicking you are agreeing to Experts Exchange's Terms of Use.

Title | # Comments | Views | Activity |
---|---|---|---|

MaxSpan challenge | 9 | 50 | |

Connect to IP Camera using Java | 4 | 59 | |

wordsCount challenge | 10 | 49 | |

for i loop in grovy | 1 | 25 |

The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**7** Experts available now in Live!