On Jan 21, 9:10 am, sha <[email protected]> wrote:
> Hi,
>
> i have understood the one-dimensional array and the 2-dimensional
> arrays... whereas my doubt is in 3-dimensional arrays.
>
> as in 2-dimensional arrays for example,  int [][] array1 = new int[3]
> [4];
>
> the first index 3 indicates that there are 3 rows, whereas the second
> index 4 indicated 4 columns. i.e. array1 is a 2-dimension array of
> type int having 3-rows and 4-columns...
>
> wat would int[][][] array2 = new int[2][3][4] indicates??
>
> which is row and which is column?
Here, you will fall in the space with 3 dimensions (x, y, z) as in a
3D space.
You can further built a n-dimension array (n > 3), but then it will be
difficult to represent it with a figure, but the reasoning is the same.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to