[solved]-Need Help Writing Java Program Textanalyzer Analyzes Text File User Puts S Command Program Q39032037
I need help writing a java program (textanalyzer) that analyzesa text file. If the user puts in a “-s” command, the program willoutput the words duplicated the most in the file. If the user putsan integer after the command, the program will output that numberof most used words in the text. Else, the program will only outputthe longest line of the file.
Example:
textfile.txt -s 3
mouse mouse mouse dog
fish fish cat cat cat
fly
output: “mouse cat fish”
Expert Answer
Answer to I need help writing a java program (textanalyzer) that analyzes a text file. If the user puts in a “-s” command, the pro… . . .
OR

