MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 17/Question17_9/Question.java:32–40  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

30 }
31
32 public static void main(String[] args) {
33 String[] wordlist = AssortedMethods.getLongTextBlobAsStringList();
34 Hashtable<String, Integer> dictionary = setupDictionary(wordlist);
35
36 String[] words = {"the", "Lara", "and", "outcropping", "career", "it"};
37 for (String word : words) {
38 System.out.println(word + ": " + getFrequency(dictionary, word));
39 }
40 }
41
42}

Callers

nothing calls this directly

Calls 3

setupDictionaryMethod · 0.95
getFrequencyMethod · 0.95

Tested by

no test coverage detected