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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started