1. Not finding help here? Sign up for a free 30min 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!

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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Java help
  1. Java Problem (Replies: 0)

  2. JAVA calling methods (Replies: 9)

Loading...