How do we read in the dictionary file? Right now, the text in place for dict_file in the AutocompleteTest class is "src/main/java/resources/dict.txt." It appears as though no words are being added to the trie, as the System.out.printf("# of words added: %d\n", count); line is not running under the Autocomplete method under the Autocomplete class.
How do we read in the dictionary file? Right now, the text in place for dict_file in the AutocompleteTest class is "src/main/java/resources/dict.txt." It appears as though no words are being added to the trie, as the System.out.printf("# of words added: %d\n", count); line is not running under the Autocomplete method under the Autocomplete class.