Write a program that finds all occurrences of a word in all the files under a directory,

Question:

Write a program that finds all occurrences of a word in all the files under a directory, recursively. Pass the parameters from the command line as follows:
java Exercise18_30 dirName word

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: