SpellDictionary dictionary = new SpellDictionaryHashMap(new File(dictFile));
SpellDictionary dictionary = new SpellDictionaryHashMap(new File(dictFile), new File(phonetFile) );
  public SpellCheckExample() {    try {      SpellDictionary dictionary = new SpellDictionaryHashMap(new File(dictFile));      spellCheck = new SpellChecker(dictionary);      spellCheck.addSpellCheckListener(this);      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));      while (true) {	System.out.print("Enter text to spell check: ");	String line = in.readLine();	if (line.length() <=0)	  break;		spellCheck.checkSpelling( new StringWordTokenizer(line) );      }    } catch (Exception e) {      e.printStackTrace();    }  }