Question
1) User wishes to save Movies DVD data in a serialized file. The data fields are: Id (int), Title (Text), Year (Text), Runtime (Double) Write
1) User wishes to save Movies DVD data in a serialized file.
The data fields are: Id (int), Title (Text), Year (Text), Runtime (Double) Write a Java program that does the following:
First ask the user to enter the path and file name for the file.
Then provide a loop for the user will enter the data for each DVD from console until user terminates data entry.
Save the data as a serialized file in the path and file name the user provided (file extension is .ser)
2) Write another Java program to read the serialized file created in step-1 (user will enter path and file name upon prompt) and output the data to the console - one line per DVD.
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