Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

=+ how might this lead to faster growth in productivity?

Answered: 1 week ago