You will get email Reply within few hours

Friday 22 November 2013

Word Count multiple files


1)Write a program WordCount that counts the words in one or more files. Start a new

thread for each file. For example, if you call
java WordCount report.txt address.txt Homework.java
then the program might print
address.txt: 1052
Homework.java: 445
report.txt: 2099
2) Implement the merge sort algorithm of Chapter 14 by spawning a new thread
for each smaller MergeSorter. Hint: Use the join method of the Thread class to wait
for the spawned threads to finish. Look up the method’s behavior in the API




Need Solution
https://gum.co/koUOd