This program scans UTF-8 text files from multiple directories and prints out the most frequently used words.
You must compile with Java 8+
Compile the program:
javac WordCount.java
Run the program starting with an integer, followed by any number of directories or filenames - ie:
java WordCount 5 /test/ /test-two/new.txt
The integer 5 represents the top number of results AKA the 5 most frequently used words in the scan.