Question: Write a Java class named Movie Theatre that has an instance variable eamed movies, which is an ArrayList of String references. Movie Theatre must: -

 Write a Java class named Movie Theatre that has an instance

Write a Java class named Movie Theatre that has an instance variable eamed movies, which is an ArrayList of String references. Movie Theatre must: - instantiate the ArrayList // do this in the constructor public MovieTheartre() - a method to add movie title (eg. "Groundhog Day" and "Dead Poet's Society") to the ArrayList a method that uses a for each loop to print all of the titles in uppercase a method to remove the first element in the ArrayList Create a driver class that - creates a Movie Theatre object and reference and adds mavie titles print how many movies are in the ArrayList - print the first movie in the ArrayList. Include all the code needed

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!