protected Set<String> readFileToSet(BufferedReader aReader) throws IOException {
  Set<String> words=new HashSet<String>();
  String line;
  while ((line=aReader.readLine()) != null) {
    words.add(line.toLowerCase());
  }
  return words;
}

protected Set < String > readFileToSet ( BufferedReader aReader ) throws IOException { Set < String > words = new HashSet < String > ( ) ; String line ; while ( ( line = aReader . readLine ( ) ) != null ) { words . add ( line . toLowerCase ( ) ) ; } return words ; }
reads the dictionary to set
