Question: Hey there, can someone pls provide a solution to this? Thanks in advance! * In the Question 2 class, write a method 'longestTrack' that takes
Hey there, can someone pls provide a solution to this?
Thanks in advance!


* In the Question 2 class, write a method 'longestTrack' that takes * an ArrayList of Tracks in an album (defined in the Track class), *as input and returns the track in the album with the *longest duration * If the list of tracks is empty, the method should return null *Eg: tk * ArrayList
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
