Java version of spellchecker

 (compile but not tested)