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
}
}