Thanks to one and all for making me understand multidimensional arrays.

Thanks,
Sha

On Wed, Jan 21, 2009 at 4:05 PM, V. Srinivasan <[email protected]>wrote:

>
> For the moment forget about column, rows here.  It is multidimensional
> array.  You can imagine a tree like situation here.
>
> Example, int[][][] mdInt = new int[2][3][4]
>
> Each one element of the First array can hold 3 elements, each one
> element of Second array can hold 4 elements.
>
> Here, mdInt[1][1] can hold 4 int elements i.e. mdInt[1][1][4] AND mdInt
> [1][2] can hold 4 int elements i.e. mdInt[1][2][4].
>
> You can assign value such as mdInt[1][1][1] = 1100; mdInt[1][1][2] =
> 1200; so on...
>
> Basically mdInt can hold 2 x 3 x 4 i.e. 24 int elements in this
> example.
>
> Hope I cleared you.
>
> V. Srinivasan
>
> >
>


-- 
cheers,
Sherry

--~--~---------~--~----~------------~-------~--~----~
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