Question: Saving and Reading a serialized File in Java: 1) User wishes to save Movies DVD data in a serialized file. The data fields are: Id

Saving and Reading a serialized File in Java:

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.

Upload your ZIPPED JAVA files to Blackboard.

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 Databases Questions!