PDA

View Full Version : java help


UrbanXrisis
Nov12-04, 06:13 PM
I know that in an array called math[][], the "math.length" will give me the length, or "width" of the array. What is the notation for the "height"?

Ex, if math[][] was a 12x15 array, then math.length=12. how would I get the # 15?

Nylex
Nov13-04, 02:53 AM
I'm not sure there is a method for that. Since you know that you have 12 one-dimensional arrays of length 15, I think you could store one of those arrays in another 1D array and then apply myArray.length to get the 15.