I know I can say ".length" on an array. Where is this defined? Can I say anything else, like ".size" maybe?
Please ignore post, I have no idea what I am talking about.
Joined: Jun 06, 2002
.length is a fundamental property of any array. It's "defined" in the Java Language Specification. Since an array is an Object, you can also call methods such as equals(), hashCode(), getClass(), notify(), wait(), etc.
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Joined: Oct 06, 2002
Yes, since arrays are objects .length is an instance variable.
Mr. C<br /> <br />Author and Instructor<br />My book:<br /><a href="http://www.aw-bc.com/catalog/academic/product/0,1144,1576761614,00.html" target="_blank" rel="nofollow">http://www.aw-bc.com/catalog/academic/product/0,1144,1576761614,00.html</a>