This Java program provides a simple spell-checking system using two dictionaries: a common dictionary and a personal dictionary. Users can check the spelling of words and add new words to their personal dictionary.
- Reads words from a
common-dictionary.txt
and apersonal-dictionary.txt
file. - Uses binary search for fast spell-checking.
- Allows users to add new words to their personal dictionary.
- Updates and saves the personal dictionary to
personal-dictionary.txt
.
- Java 8 or higher
common-dictionary.txt
file containing common words (one word per line).- (Optional)
personal-dictionary.txt
file to store the user's personalized words.
- Place the
common-dictionary.txt
file in the same directory as the program. - (Optional) Place a
personal-dictionary.txt
file if you already have one. If not, one will be created when you add words. - Compile and run the program:
javac Project11.java java Project11