Question: Problem # 1 Create the Movie class with the instance members title, year, genre, and rating ( out of five ) . Add all necessary

Problem #1
Create the "Movie" class with the instance members title, year, genre, and rating (out of five).
Add all necessary constructors, setters, getters, and toString methods to the "Movie" class. (4
marks)
Write a class called "ListOfMovies" that implements the"Iterable" interface. In this class, you
are using "LinkedList" as the underlying structure (which is available from the textbook
example). Add a default constructor, "addMovie", "findMovie", "addMovieAfter",
"replaceMovie", and "toString" methods into the "ListOfMovies" class. You also need to
implement the "iterator" method. (7 marks)
Write an application (driver) that tests all the methods of the classes "Movie" and
"ListOfMovies." Use an iterator to traverse the list of movies and remove the movies that have a
rating below 2.0.(4 marks)
Please use Java Eclipse .
Problem # 1 Create the "Movie" class with the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!