Date: 22/02/2020
The output file name is a new text file. It contains all the words in the first file followed by number of times each word occurred in the document.
Finally, it shows total number of words in the document.
The program is modified so that you must run it from a terminal with the following syntax:
java wordCounter InputFileName.txt OutputFileName.txt
The output file should be similar to bigResults.txt which is the result of counting the words in big.txt
Note: the data structure used in this program is array list. Which won't be practical when the input file is huge.