emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[HW#2] Reading in the dictionary file #217

Closed chelfen closed 2 years ago

chelfen commented 2 years ago

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.