aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "length" Watch "length" New topic
Author

length

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
dear all
Is array have .length()or length method ?
please comment.
thanks in advance.
--shi
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi shi,
Arrays have a field named length (not a method). so to get an array's length use
arayneme.length
regards
deekasha
 
Consider Paul's rocket mass heater.
 
subject: length