Given the attached text file as an argument, your program will read the file,
and output the 20 most frequently used words in the file in order, along with their frequency.
The output should be the same to that of the following bash script ./top20words.sh
,
where the first argument is the text file to count:
Java 14+, Gradle 6 or gradle-wrapper
gradle build
java -jar build/libs/top20words.jar <filename>
For example
java -jar build/libs/top20words.jar data/mobydick.txt
./top20words.sh data/mobydick.txt