if (line.length() == -1) break;
if (line == null || line.length() == -1) break;
  public SpellCheckExample2() {    try {      BufferedReader in = new BufferedReader(new FileReader("README.TXT"));      SpellDictionary dictionary = new SpellDictionaryHashMap(new File(dictFile));      spellCheck = new SpellChecker(dictionary);      spellCheck.addSpellCheckListener(this);      while (true) {	String line = in.readLine();	if (line.length() == -1)	  break;		spellCheck.checkSpelling( new StringWordTokenizer(line) );      }    } catch (Exception e) {      e.printStackTrace();    }  }