Question: please write the solution with clear view thanks Write a program named SpellCheck that reads a file named paper line by line, keeping count of
please write the solution with clear view thanks
Write a program named SpellCheck that reads a file named paper line by line, keeping count of the line numbers as it does. With each line, the program examines every word in the line (hint: use a Scanner based on the String holding the line). For each word in the line, the program looks up the word named Dictionary. If the word is to be found in the Dictionary file, then the word is spelled correctly and no action is taken. Otherwise, the program displays the line number and the word to standard output (thus indicating the spelling error and where it occurred). The format of the output line is this: first "Line " literally. Then the line number displayed in a field of FOUR positions. Then, a colon and a space... and finally the misspelled word itself. For example: Line 47: neccesary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
