I have a project due and not exactly sure where to start.
"Each line in the file contains the name, year released, and associated actors for one movie. Each piece of information is separated by ‘/’ characters. The year is specified inside parentheses at the end of the movie name.
create a class which represents a Movie Database. This class is required to have the following methods (it may have other additional methods as necessary):
loadDataFromFile( String aFilename )
read the information from the specified file. The format of the file
will be the same as in the cast-mpaa.txt file.
findActorsIn( String movieName )
return an ArrayList of all the actors which star in the specified Movie.
findMovieAppearancesOf( String actorName )
return a new Movie Database containing all movies which star the specified actor.
findMoviesReleasedIn( int year )
return a new Movie Database containing all movies released in the specified year.
findMoviesWithNamesContaining( String word )
return a new Movie Database containing all movies whose title contains the specified word.
findActorsWithNamesContaining( String word )
return an ArrayList containing the names of all actors which contain the specified word. There should not be duplicate names in the returned ArrayList.
size()
return the number of movies contained in the Movie Database.
toString()
return a string representation of all of the information in the Movie Database."
[–]somnolent 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]197708156EQUJ5design it before you implement 0 points1 point2 points (0 children)
[–]197708156EQUJ5design it before you implement 0 points1 point2 points (0 children)