Question: 3. A text file contains following data (see below), we need to find how many times the word out ocurrs at each line of the
3. A text file contains following data (see below), we need to find how many times the word "out" ocurrs at each line of the file. Write Java code to count and output the occurrence of word "out" for each line of String, regardless of their case. No need to write a main method, just implement a method to read the file, process Strings, and output the results. (15 points) data.txt contains following lines of String: All were out there, and some were still getting out Others were not out, but thingking of getting out or sitting out. They were veryfying how many were out. The verfication statements were out early in the morning
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
