Question: Task #2: equals() method Write a program in Java that asks the user to enter two lines of words and checks whether the two lines

Task #2: equals() method

Write a program in Java that asks the user to enter two lines of words and checks whether the two lines of words match (equal) each other. The program will display Lines are equal, otherwise the program will display Lines are not equal.

  1. Test the program. Take notes of the program with your observations and include in your comments.

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!