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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started