Question: Write a program named WordCount.java, in this program, implement a static method as specified below: public static int countWord(String word, File file) This method counts
Write a program named WordCount.java, in this program, implement a static method as specified below: public static int countWord(String word, File file) This method counts the number of occurrence of the word in the file. Ignore case in the word. Possible punctuation and symbals in the file include , ! . ; : ? & # and $. Then test your method in your program.
given
yahoonews.txt
Should the San Francisco 49ers unexpectedly release quarterback Colin Kaepernick in a final round of roster cuts on Saturday, he might have an interesting barrier to his next NFL job: ownership.
Citing the controversial and highly visible nature of Kaepernics national anthem protest, four highly ranked executives from the four clubs said even discussing Kaepernick as an option in the future would require ownership signoff in their respective franchises.
However youre looking at it, [signing or trading for Kaepernick] is an endorsement of how the situation has been handled, one executive said. ?I have to explain to [my team owner] that a guy is going to [protest] the national anthem and draw attention to himself over the rest of the team. But I?ve got to say, Heres why we want to attach our franchise to this. ? Its not happening without him being OK with it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
