Visit www.myprogramminglab.com to complete select exercises online and get instant feedback.
Exercise
Change the definition of the class Person in Display to be serializable. Note that this requires that you also change the class Date. Then write a program to maintain a binary file of records of people (records of type Person). Allow commands to delete a record specified by the person’s name, to add a record, to retrieve and display a record, and to obtain all records of people within a specified age range. To obtain the age of a person, you need the current date. Your program will ask the user for the current date when the program begins. You can do this with random access files, but do not use random access files for this exercise. Use a file or files that record records with the method writeObject of the class ObjectOutputStream.
Display
A Person Class
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.