Sharing Intelligence
May 17, 2020
Key Players in Health Care Policy
May 17, 2020
Show all

Java Program

Write a Java program to read data on movies from a Comma Separated (CSV) text file. Each line in the file contains data for one movie. The data format is as follows: Title(String -length 20), Genre(String-10), Year(String-4),Runtime(Double)

Read the file and store the movies in a List Collection.

Write a comparator to sort the movies by Year and Title (in that order). Using this comparator, SORT the List and output the Movie data on the Console. Sorting is ascending sort.

Leave a Reply

Your email address will not be published. Required fields are marked *