Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Check array until null

807601Apr 22 2008 — edited Apr 25 2008
I have an array set to 100. I have a loader that load's the length of the array from a text file. But I only have 20 items in the text file. Is there a way I can figure out how many items are in the text file without previously knowing how many are there. Like can I check the array until "null"? How would I do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2008
Added on Apr 22 2008
9 comments
450 views