This is a continuation of Exercise 3 from week 6 practical exercises. Import a copy of Movie.java and your main program file (from week 6) into your week 9 project in Eclipse. Modify your solution code as follows:
a. Instead of the movie data being input via the keyboard, read the movie data from the file movieplaylist.csv into
by using either the useDelimiter method of the Scanner class or the split method of the String class (these were discussed in the week 8 lecture).
About the csv file: Each line of text in the CSV file represents one movie object. Each data item on each line is separated by a comma. Each line of text conforms to the following format:
title,company,actor,rating,year,takings
where
b. You may assume that all of the data in the file is valid, therefore, there is no need to validate any of the data as it is read from the file into the array and arrayList.
c. After reading the data from the file into the array and arrayList, display a summary table of the data in the array and arrayList similar to the following: see image.
Test the program with different sized files with different sets of data. Make sure your code works correctly if the file isn't found, if it exists but doesn't have any data in it, or, if the file has too many values to fit into the array. Your solution must incorporate appropriate methods utilising appropriate parameter passing.
Class file name: The name of the class files should be Movie and MovieFileDemo