Question: JAVA. Need help coming up with a code. Thanks! These are all connected. 1) Create an appropriate class Covid19Record that will be used to store
JAVA. Need help coming up with a code. Thanks! These are all connected.
1) Create an appropriate class Covid19Record that will be used to store records consistent with the form presented in the csv file.
2) In the Class CovidQ, wite a method readInfo, which given a path to this file will load all the records in the CSV file into an ArrayList of Covid19Records. The signature for this method is: public static ArrayList
3) In the class CovidQ, write a method findRegions that given an ArrayList of Covid19Records as a source will return an ArrayList of Strings which have all the unique region names in it. The method signature for this is: public static ArrayList
4) In the class CovidQ, write a method printHeaviestDay which given an ArrayList of Covid19Records as described above will print out to a specified file (given by a path) for each unique region: a. The name of the region b. The Date on which the greatest number of new cases were recorded: c. The number of new cases on that day. The method signature for this is : public static void printHeaviestDay(String sPath, ArrayList
5) Make the class Coiv19Record serializable. Then provide a method in CoivdQ called writeObjects that will out all Covid19Records to an object file identified by a path string variable. The method signature for this is: public static void writeObjects(String sPath, ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
