#Read list inside CSV file in java

1 messages · Page 1 of 1 (latest)

edgy monolith
#

I have a CSV file in which there are 2 columns: weekday and itemQuantity. I want each week day to map to a list of the quantities of a certain item on that day. Do CSV files allow to store lists in a column, and if so, how would I read that list to parse it as a CSV record?

cosmic mauveBOT
#

This post has been reserved for your question.

Hey @edgy monolith! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

fossil widget
#

The first thing that came to my mind is using an hashmap. It can store the weekday and the value of that week

#

Of course, there are a lot of libraries out there for parsing CSV but I think hashmap is the way to go if you were to learn