Word Count multiple files

Word Count multiple files

1)Write a program WordCount that counts the words in one or more ?¦les. Start a newthread for each ?¦le. For example, if you calljava WordCount report.txt address.txt Homework.javathen the program might printaddress.txt: 1052Homework.java: 445report.txt: 20992) Implement the merge sort algorithm of Chapter 14 by spawning a new threadfor each smaller MergeSorter. Hint: Use the join method of the Thread class to waitfor the spawned threads to ?¦nish. Look up the methods behavior in the API


Comments are closed.