Question: FavoritesManager.java This will be fun were now going to create a java file, compile it. Create a project called FavoritesManager. Then, create a class called

FavoritesManager.java

This will be fun were now going to create a java file, compile it.

Create a project called FavoritesManager.

Then, create a class called FavoritesManager and fill in the package as moviefan.

IMPORTANT REMINDER: The package listing at the top of your java file should say:

package moviefan;

Add two instance variables and set their variables directly in code:

One for your favorite movie.

One for your favorite actor.

Create two methods:checkFavoriteMovie

This method should be public.

It should return boolean type.

It should take a String as input.

DO NOT use the keyword static anywhere in this class. Nothing should be static.

It should check to see if the input is the same as your favorite movie instance variable.

NOTE: Use .equals() and not == when comparing two Strings.

It should then return false if not the same and true if the same.

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!