I would like to create a HashMap<string, int> with keys from the contents of the array and ints from the length of the length of the key. How would I do that?
1. construct the hashmap 2. iterate through the array (loop) 3. call put(...) on your hashmap for every entry, using the values from your array