Question: Exercise 2 - Comparing the contents of two files. Write a program Similar.java that prompts in its main method the user to enter two filenames

 Exercise 2 - Comparing the contents of two files. Write a

Exercise 2 - Comparing the contents of two files. Write a program Similar.java that prompts in its main method the user to enter two filenames then invokes a method called isSimilar that takes two Scanner objects as input parameters and returns a Boolean value (true or false) depending on whether or not the files have the same content. Your isSimilar should check the files character by character and ignore the case (upper case and lower case). You must write the appropriate test files to test your program

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!