Create an array to hold four movie objects and fill the


Write code to accomplish the following tasks.

create an array to hold four movie objects

fill the array with objects: two movies and two documentaries

iterate through the array with a loop and print only the topic of any object that is a documentary

Do not use the index of the array to determine whether the object is a documentary

Your code would go in the following class:

public class MovieDocumentaryDriver {

public static void main(String[] args) {

// YOUR CODE HERE

}

}

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create an array to hold four movie objects and fill the
Reference No:- TGS02889478

Expected delivery within 24 Hours