Question: JAVA Here's what I have so far This is what I need: Make the class Coiv19Record serializable. Then provide a method in CoivdQ called writeObjects
JAVA
Here's what I have so far

This is what I need:
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
5 public class Covid19 Records 6 { 7 String Date; 8 String Region; 9 int new_cases; 190 public Covid19 Records (String Date,String Region, int new_cases) 11 { 12 this.Date = Date; 13 this.new_cases new_cases; 14 this.Region = Region; 15 } 16 // Getters and setters 170 public String getDate() { 18 return Date; 19 200 public void setDate(String date) { 21 Date = date; 22 } 230 public String getRegion() { 24 return Region; 25 } 260 public void setRegion(String region) { 27 Region = region; 28 290 public int getNew_cases() { 30 return new_cases; 31 } 320 public void setNew_cases(int new_cases) { 33 this.new_cases = new_cases; 34 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
