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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here