Question: @return the most common filename which was used. * * photographers = [ * Photographer ( photos = [ * Photo ( filename = photo

@return the most common filename which was used.
*
* photographers =[
* Photographer(photos=[
* Photo(filename="photo1"),
* Photo(filename="photo2"),
* Photo(filename="photo3"),
*]),
* Photographer(photos=[
* Photo(filename="photo4"),
* Photo(filename="photo5"),
* Photo(filename="photo6"),
*]),
* Photographer(photos=[
* Photo(filename="photo2"),
*]),
*]
*
* mostCommonName() should return Photo(filename="photo2")
*
*/
public Photo mostCommonName(){
// To be completed
return null;
}

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!