Question: public class IMDb { // DO NOT worry about relationships between classes public static void main(String[] args) { // TODO: populate each array Director[] directors

public class IMDb {

// DO NOT worry about relationships between classes

public static void main(String[] args) {

// TODO: populate each array

Director[] directors = new Director[3];

Movie[] movies = new Movie[10];

Actor[] actors;

Actress[] actresses = null;

// populate each array with 3 objects (10 movie objects)

// display all movies: show title and year

displayMovies(movies); // write this method!

// TODO: prompt the end user for the name of the actress

String name = "Hepburn"; // replace this hard-coded string w/ user

input

// TODO: search for the named actress (-1 if not found)

int index = searchByName(name, actresses);

// TODO: display search results (actress name or error if not found)

}

}

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!