Question: In Java, Create these Classes: A Person class with getters and setters for first name and last name. A Person List class that creates an
In Java, Create these Classes:
A Person class with getters and setters for first name and last name.
A Person List class that creates an ArrayList of Person with methods to add, delete, set, and get a specific person.
A SerializableModel class that has a field of the Person List Class. It also must contain a field for the .ser file. This class will contain methods to read and write person objects into a .ser file using an arrayList from the Person List Class.
The read method must read ALL the objects written previously to the file. The ArrayList of people must be updated with all the objects previously written to the file.
MUST use Object Serialization. ( .readObject() )
A Controller class that creates an instance of the SerializableModel Class
An App class that contains the main method and initializes the controller.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
