Question: Write a class that prompts the user to enter a String value and a file name for a text file. The class should read the
Write a class that prompts the user to enter a String value and a file name for a text file. The class should read the text file and count how many times the String value entered by the user occurs in the text file. The class should print the number of occurrences of the String value to the screen and also write the answer to a text file named answer.txt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
