The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
June 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Reply

Posted by Kamal Dureja on June 06, 2000 at 3:09 PM

> How can I reference the size of a 2-dimensional/3-dimensional array using "array.length" ? Thanks!

I think that the array.length will correspond to the first number, on the Left Hand Side bracket. This is number of rows of element where each element is itself an array. Now, If we use the element.length, we can target the other bracket too.

I am not sure if that is the answer you are lookig for.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us