Question
Please write a Java program to read movies.txt file. A Comma Separated Value (CSV) text file called movies.txt contained data for movies, one movie on
Please write a Java program to read movies.txt file.
A Comma Separated Value (CSV) text file called movies.txt contained data for movies, one movie on each line. Each Movie contains the following data items: Title(String), Year(int-4 digits), Runtime(double).
Movies.txt:
Create a movies.ser file from the Text file
Write Java program(s) to read the movies.ser serialized file and output the data on to the Console in the format shown below.
The spacing for the output is: Title(20), Year (8) and Runtime (10.2) Title and Year are left-justified, Runtime is right-justified. (You can use your own text file to test your program)
Sample output:
Title Year Runtime aaaaaaaaaaa aaaa a.aa ...... ...... ..... ...... ...... ..... xxxxxxxx xxxx x.xx yyyyyyy yyyy y.yy
Please focus on reading the .ser file and outputting its content. Pease do not just output movies.txt file using System.out.println().
Star Wars, 2017, 2.3 Star Wars, 2015, 2.2 Forest Gump, 1994, 2.2 Pulp Fiction, 2008, 1.89 The Lion King,2019,2.2 The Godfather, 1974, 2.1Step 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