Question: Java Suppose that you have the Object class Person which is an object that contains Name, Surname and Age with the respective set and get

Java

Suppose that you have the Object class Person which is an object that contains Name, Surname and Age with the respective set and get functions. You will create following functions on *PersonRW' class, and create a main java class to call them. Write a java function that writes on a file named 'person.txt' by using Formatter Class, this Person Object. Write another java function that reads from the file person.txt' and stores the data as an array of instances of Person object. Write a function that prints out the name, surname and age of the youngest from the Person list taken from the file. Now write the main java class that takes data by using Input Dialogs, and that uses all of above functions of \"PersonRW' class. Write the same functions in a and b by assuming the Employee Object class is serializable, on \"PerSerRW' class. The name of the file to read and write should be 'person.bin'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!