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 userinput, display, searching
longest film and another method for searching shortest film.
C: Windows systemcmdexe
List of Films and Their Length
Ek Main Aur Ekk Tu and Film Length:
Road to Perdition and Film Length:
The Truth about Cats and Dogs and Film Length:
Enigma and ilm Length:
Ghost and Film Length:
Aur Ekk Tu at minutes
Longest film is Ek Main Aur Ekk Tu at minutes minutes Shortest film is The Truth about Cats and Dogs at ming
Press any key to cont inue.
Film: Ek Main Aur Ekk Tu and Film Length:
Fillm: Road to Perdition and Film Length: Lruth about Cats and Dogs and Film Length:
Film: Vnigma and Film Length: Length:
Film:
Longes
Press any key to continue.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
