(String[] words)
| 68 | } |
| 69 | |
| 70 | public static HashSet<String> setupDictionary(String[] words) { |
| 71 | HashSet<String> hash = new HashSet<String>(); |
| 72 | for (String word : words) { |
| 73 | hash.add(word.toUpperCase()); |
| 74 | } |
| 75 | return hash; |
| 76 | } |
| 77 | |
| 78 | public static void main(String[] args) { |
| 79 | String[] words = {"maps", "tan", "tree", "apple", "cans", "help", "aped", "free", "apes", "flat", "trap", "fret", "trip", "trie", "frat", "fril"}; |