This small project is meant to be completed during the lab session on April 4/20, however submissions will be accepted through 11pm on April 4/20.
The tasks that you have to complete are fairly simple - you must use the ReadCSV class made available for you in project 7 to read a comma-delimited file (provided to you as test.csv, but your code must work for any similar comma delimited file). This file is different from the spreadsheets you have seen in Project 7 in that the lines have a different number of records.
You will have to implement two methods (a skeleton of which is already provided in the project code). The first - countLines - takes a file name and returns an ArrayList<Integer> object that contains the number of records in each line in the input file (note that the ReadCSV class already skips the first header line).
The second method - sortIncreasingLines - must return an ArrayList<String > representing the lines in the input file (all lines but the header) in increasing order based on the number of fields in each line (line 4 in the input file - Andy - would be the first one as it contains only one field).
As an extra challenge, you should also implement a sortDecreasingLines method that implements the reverse sorting of the original file.
The goal of this project is to help you practice some language constructs (such as using the Comparator interface for sorting) that will be useful in your implementation of project 7.