java.lang.ObjectSpellChecker
public class SpellChecker
Class that implements a simple spell-checker for files.
| Constructor Summary | |
|---|---|
SpellChecker(java.lang.String dictFile)
Constructs a spell checker with the specified dictionary. |
|
| Method Summary | |
|---|---|
void |
checkFile(java.lang.String textFile)
Method that interactively checks a file for misspelled words. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpellChecker(java.lang.String dictFile)
dictFile - the file containing the dictionary words| Method Detail |
|---|
public void checkFile(java.lang.String textFile)
textFile - the name of the text file to be spell-checked