Question: Write a Java program that does spell checking. The program should do spell checking as follows, The program should accept two text file names on
Write a Java program that does spell checking. The program should do spell checking as follows,
- The program should accept two text file names on the command line or prompt user to enter file. Please do not hardcode file name in program.
- The program should read both files into string variables. The first is the file to check, and the second is the dictionary.
- Both strings should be split into lists of words (two ArrayList collections)
- Implement your main loop. For each word in the document file, if that word doesn't exist in the dictionary, print it out, saying that it is an unknown word
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
