Question: Write a java program that can count how many times a specific word occurs in the input file. The word can be specified by the
Write a java program that can count how many times a specific word occurs in the input file. The word can be specified by the console input. When your program finds the word, it should insert its occurred number behind it. For example, if the specified word is Lab exist three times, then the output should be as shown below.
Input - Notepad File Edit Format View Help , you are in Network Programming class. You are in Lab 3. This Lab is so important to learn Data Steam Enjoy the Lab. Smile... File Edit Format View Help Hi, you are in Network Programming Class. you are in Lab (1) 3. This Lab (2) is so important to learn Data Steam. Enjoy the Lab (3). Smile
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
