Implement a Java application for the following: We want to keep track of a Movie Collection. Each Movie in the collection will contain: Title, Genre, Year (4 digits) and Runtime (double - ex. 2.1...


Implement a Java application for the following:


We want to keep track of a Movie Collection. Each Movie in the collection will contain: Title, Genre, Year (4 digits) and Runtime (double - ex. 2.1 (hrs)). Your program will read movies from a local text file namedmovies.txtin the current project directory in Eclipse. Each line in the text file contains one Movie with the fields separated by commas.


Read the text file and load the movies in to a Collection. Implement a Comparator for the Movie Class that can sort the movies in ascending order of Title+year. Sort the movies read from the text file (movies.txt) in ascending order of Title+Year and write the sorted collection to a file calledsortedmovies.txtin the same directory as movies.txt.

Oct 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here