Skip to Main Content

Java Programming

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!

importing a CSV file to an ArrayList

807603Feb 21 2008 — edited Feb 21 2008
Hi, I have searched for topic like this and have not been able to find exactly what I am looking for. I am very new to Java and I am looking for a way to read in a *.csv file into an array list and have each value stored to a column in the array list. For instance, I want to save a list of unknown length to different fields in the array list

a,1
b,2
c,3
d,4...

I am able to read in each line to the list, but I would like to save each char to its own field in that row. I hope that I am making sense and that my terminology is explaining my issue correctly. Thank you in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2008
Added on Feb 21 2008
4 comments
1,339 views