For now I have a CSV with several columns in rows. Eventually, I will have a SQL relational database structure. I was wondering if there are any libraries to easily extract this data into a list of java objects.
Example:
title | location | date
EventA | los angeles, ca | 05-29-2014
EventB | New York, NY | 08-23-2013
This is the structure of the data in csv. I would have a java object called Event:
Event(String title, String location, String Date)
I am aware of openCSV. Is that would I need to use for csv? If that is the case, what is the different solution for a SQL relational database?
Also, does can reading a csv only be done in the main method?