Question: Assignment: Assume there is an array of Film objects where the Film class is defined as follows: public class Film { private String title; public

Assignment: Assume there is an array of Film objects where the Film class is defined as follows:
public class Film
{
private String title;
public Film(String titleValue){
title=titleValue;
}
public String getTitle()
{
return title;
}
}
Write a public static method searchTitle that:
accepts as first argument an array of Film objects;
accepts as second argument a String representing a potential Film title;
returns a boolean value representing whether the second String argument is a title of one of the Film objects of the Film input array.

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!