Question: Using Java Object Oriented Programming, ceate a method within a class called FileSearch. The method should serach for a word in a text file called

Using Java Object Oriented Programming, ceate a method within a class called FileSearch. The method should serach for a word in a text file called words.txt, and then say whether the word is present in the file or not.

No main should be created. Only Methods and a junit test file (FileSearchTest) that should test for a word that is in the file and a word that is not.

the file words.txt is an existing file. No jeed to create a new one

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!