Important note for those outside of the USA:
I'm putting this note at the top so that you'll actually read it! If you're outside of the USA, when parsing a date using DateTimeFormatter you'll also need to pass in a Locale for your area (i.e. Locale.CANADA or Locale.UK etc.)
In this assignment you will be analyzing sales data for the sales of Tesla vehicles between 2016 and 2019.
Your job will be to read the data from 3 different CSV files and store that information for analysis and reporting.
You will need to use Java Streams to go through this data and output the following information onto the console:
Note: anywhere you see #### or yyyy-MM, you'll need to output actual numbers / dates based on your analysis.
2017 -> #### 2018 -> #### 2019 -> ####
The best month for Model 3 was: yyyy-MM The worst month for Model 3 was: yyyy-MM
2016 -> #### 2017 -> #### 2018 -> #### 2019 -> ####
The best month for Model S was: yyyy-MM The worst month for Model S was: yyyy-MM
2016 -> #### 2017 -> #### 2018 -> #### 2019 -> ####
The best month for Model X was: yyyy-MM The worst month for Model X was: yyyy-MM The CSV Files You can download the three CSV files via these links:
https://s3.amazonaws.com/javavideotutorials.net/exerciseFiles/Assignment6/model3.csv https://s3.amazonaws.com/javavideotutorials.net/exerciseFiles/Assignment6/modelS.csv https://s3.amazonaws.com/javavideotutorials.net/exerciseFiles/Assignment6/modelX.csv
Hints You don't need to output this entire report in a single stream.
You'll want to read the data into three separate Lists.
You will likely need to stream through each of the Lists a few times to be able to output all the necessary data in the report.
Remember that grouping data is an important thing to do.