Design a java program named WordCount.java to count the occurrence of a particular word in a file. Both file and the word are passed as arguments to the main method.data file: wordCount.txtSample output:The word “java” appears 7 timed in in the file.
given
wordCount.txt
Resources: Yahoo newshttp://college.usatoday.com/2016/09/08/asu-pulls-scholarship-for-dreamer-an-hour-before-class/
After years of hard work and sacrifice, Eduardo Lujan-Olivas?dreams of attending a university almost died an hour before hisfirst class.
Lujan-Olivas, 23, is a dreamer, or a young undocumented immigrantbrought to the U.S. as a child. He has been approved for the
Deferred Action for Childhood Arrivals program, whichtemporarily shields young immigrants from deportation. He earnednumerous
academic awards and distinctions
PayPal Gateway not configured
PayPal Gateway not configured