I am coding a boggle solver for which I need to populate a dictionary. My approach is the do a static initialization something like:
private static final Set<String> dictionayKeys = DictionaryReader.populateDictionaryWords("/../dictionary.text);
To add more details, the boggle solver would only use dictionaryKeys to verify if a word is contained then dictionaryKeys eg dictionaryKeys.contains(currWord)
Now question - I have been reading up on lazy initialization, and wondering if this example would be be an ideal canditate for lazy init, given the file IO involved ?