Question: Q4. Write a recursive method that returns the number of all occurrences of a given word in all the files under a directory. Write a

Q4. Write a recursive method that returns the number of all occurrences of a given word in all the files under a directory. Write a test program. Use the following header: public static long findInFile (File file, String word)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
