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!

Line Counter?

843785Dec 4 2008 — edited Dec 7 2008
Hi there,

I am trying to use Scanner to read a CSV file. I need to know how many lines there are in the file so I can create the right amount of elements for my array. We have not been taught how to use lists yet so that is what I am stuck with.

What is the best way to do this?

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2009
Added on Dec 4 2008
41 comments
167 views