Question: Object ArrayList Assignment In Java Create a class called Film which will have two instance variables - title of the film and length of the

Object ArrayList Assignment
In Java Create a class called Film which will have two instance variables - title of the film and
length of the film, constructor with arguments, accessor methods, toString method, and
equals method.
In the test class, create an array of ten film objects using user input, display the list of
fims, and search for longest and shortest films.
Please note that the test class must contain a method for user-input, display, searching
longest film and another method for searching shortest film.
C: Windows ??? system32\cmd.exe
List of Films and Their Length
Ek Main Aur Ekk Tu and Film Length: 183
Road to Perdition and Film Length: 117
The Truth about Cats and Dogs and Film Length: 93
Enigma and F ilm Length: 114
Ghost and Film Length: 170
Aur Ekk Tu at 183 minutes
Longest film is Ek Main Aur Ekk Tu at 183 minutes 93 minutes Shortest film is The Truth about Cats and Dogs at 93 ming
Press any key to cont inue.
Film: Ek Main Aur Ekk Tu and Film Length: 183
Fillm: Road to Perdition and Film Length: 117 Lruth about Cats and Dogs and Film Length: 93
Film: Vnigma and Film Length: 114 Length: 145
Film:
Longes t
Press any key to continue. ..
 Object ArrayList Assignment In Java Create a class called Film which

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 Databases Questions!