my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Array probm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Array probm" Watch "Array probm" New topic
Author

Array probm

kalai sundar
Ranch Hand

Joined: May 25, 2005
Posts: 69
schedulevo[] sha is my array, i wnat to print the size of the array, how to do plz hepl me
lalit upadheyay
Ranch Hand

Joined: Jun 20, 2005
Posts: 110
Originally posted by kalai sundar:
schedulevo[] sha is my array, i wnat to print the size of the array, how to do plz hepl me




quite simple. use sha.length after creating the array. schedulevo[] sha; statement just declares it but the array is not created.


SCJP1.4, SCWCD1.4, SCBCD5.0(working on...)
Abdulla Mamuwala
Ranch Hand

Joined: Jan 09, 2004
Posts: 225
 
 
subject: Array probm
 
Similar Threads
WA #1.....word association
How could I print names randomly?
Doubt
about array
Another 'Y' game