Question: Create a Person class containing the following state and behavior as identified below. In addition, you must also create a PersonTest class to store at
Create a Person class containing the following state and behavior as identified below. In addition, you must also create a PersonTest class to store at least five Person using an arraylist. Create a text file that that is to be created by the program which contains the Person objects where each object is represented on a separate line with each attribute separated by a comma and name this text file PersonsInfo.txt.
Create a method that reads from the file, creates one Person object per line, and stores the object in an ArrayList object. Write the stored sorted objects by last name and display last name and first name to the console. For example, Salisbury, Robert.
| Object | State | Behavior |
| Person | First Name Last Name Age Gender SSN | getters/setters |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
