Question: Kindly solve below in JAVA. Q3. (40 pts) Write a program that counts the number of occurrences of a given word in a set of
Kindly solve below in JAVA.
Q3. (40 pts) Write a program that counts the number of occurrences of a given word in a set of files. The program should leave the exceptions unhandled. The files "alice-chap1-6.txt" and "alice-chap7-12.txt" can be used to test your program for counting the number of occurrences of the word "Alice". Adapt your program to search for words regardless their cases, i.e. words such "Alice" or "alice" count the same. Hint: use the function String.toLowerCase() or String.toUpperCase()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
