Question: Write a Java program that inputs a list of words from a text file, separated by whitespace (blank or tab, and the end of line)

Write a Java program that inputs a list of words from a text file, separated by whitespace (blank or tab, and the end of line) Put each word into an array with a count of how many times the word appears. When finished with the input file, output the array to a text file named HW1.out Guidelines 1) Do not hard code the file names in the program. Ask the user for the file names, both input and output. 2) Check to make sure the input file exists! 3) If either a single quote or double quote appears, consider it part of the word, e.g. it's, it and it's are three different words. 4). Once you find a word, convert to lower case before putting it in the array -no need to worry about capitalization 5) Create a small text file to test your program. By hand, count the number of times a word appears. This is the test plan to confirm that the program works. 6) Do Not use ArrayList. Create your own data structure. 7) Create the class files with stubs. Compile and verify at each step the program works
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
