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.Kindly solve below in JAVA. Q3. (40 pts) Write a program that

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

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!