SOLVED: Java program that will prompt the user to …

$30.00

Category:

Description

SOLVED: Java program that will prompt the user to …

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the user).

Requirements:

– You will need to create a class called Word that contains the method to count the frequency of words, a method to sort the words and other methods that will process the frequency of words.

– You also will need another class containing  a main method to run the other methods.

-Make sure to use ArrayList class to store the words.

[Create a text file containing the speech of Martin Luther King Jr. (I Have a Dream) to test your program].


error: Content is protected !!