Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MovieListlnterface.java specifies a Java interface for an ADT that maintains a list of movie titles. This interface includes two operations: . add(String movie) - add
MovieListlnterface.java specifies a Java interface for an ADT that maintains a list of movie titles. This interface includes two operations: . add(String movie) - add a movie title to the list * onThisList(String movie)-check if a given movie title is on the list Develop three implementations of this interface, each with a different underlying data structure: . Array Linked list ArrayList from the java.util package Each implementation is a separate class, and each of these classes is to include a toString0 method to list out the movies, one title per line. The source code for the interface is provided in the movieList package in the attached Eclipse project export file for this assignment. The linked list implementation must use the LLStringNode.java class provided in the movieList package; do not use the LinkedList class from the java.util package. To earn full credit you must make use of appropriate ArrayList methods to efficiently develop the movie list ADT based on that data structure, along with an Iterator object to traverse the list of movie titles for the toString0 method. In addition to the three ADT classes, create a Java program-i.e., a Java class with a main( method to test each of the implementations. For each implementation: Instantiate a list object and add the titles of seven of your favorite movies; Using System.out.println0, display the list of movies; Use the onThisList) method to test whether Rosencrantz & Guildensterm Are Dead is on your list, and report out the result; and Use the onThisList0 method to test another title, and report out that result make sure to use a title that produces the opposite result from the first test. Submit the following items: An Eclipse project export with all of your source code Overall project description, as described in the Programming Projects General Requirements
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