hi, I have a suggession to read multi dimensional arrays:
example : int[][][] array2 = new int[2][3][4] can be read as : there are two tables. each table contains [3][4] ie 12 elements. sha 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? > > Thanks, > Sha > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
