Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago