Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement in JAVA Assume that a list of movies produced in different years are listed in a text file. Assume that the name of the
Implement in JAVA
Assume that a list of movies produced in different years are listed in a text file. Assume that the name of the text file is "movies.txt (Please note that | added an additional field uniquely identifying the movie) For example, here is some set of movies. Please feel to add, change, edit the test data. 1, West Side Story, 1961 2, Alladin, 2019 3, Airport, 1970 4, Red Sun, 1971 5, Solaris, 1971 6, Tenet, 2020 Assume that there exists another file called "songs.txt" containing the list of songs for different movies. Please note that some movies may not have any songs in it. For example, here is some sample data for songs.txt" (1st field = movie_id, 2nd field = song_id, 3rd field = sont title) 1,1, Overture 1,2, Prologue 1,3, Jet Song 1,4, Something's Coming 1,5, Dance at the Gym 2,1, Arabian Nights 2,2, One Jump Ahead 2,4, Speechless 2,5, Friend Like Me You will write a program To read both the text files To construct a movie object with four fields (id, name, year_made and songs_list). Note that songs_list is a collection (ArrayList). To construct a collection of movies (ArrayList) To ask the user for inputting a movie id To display the movie details and the songs list for the given movie_id Movie Collection Movie Song movieList: ArrayList
Step 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