Question: Please use Java to solve the following question You can use either a set or a bag to create a spell checker. The set or
Please use Java to solve the following question
You can use either a set or a bag to create a spell checker. The set or bag serves as a dictionary and contains a collection of correctly spelled words. To see whether a word is spelled correctly, you see whether it is contained in the dictionary. Use this scheme to create a spell checker for the words in an external file.
To simplify your task, restrict your dictionary to a manageable size.
Task:
A class that implements a bag of objects by using an array. The bag is never full.
A class of static methods that write to and display a text file of user-supplied data.( class TextFileOperations)
Create a file of correctly spelled words to act as a dictionary
Make sure to provide your testing data as part of the end comment.
In addition to the code Please also provide: Algorithm Flowchart Use case diagram Class diagram Activity diagram Class responsibility diagram (For the question)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
