1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Java help

  1. Nov 12, 2004 #1
    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?
  2. jcsd
  3. Nov 13, 2004 #2
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook