| 2 | import java.util.Map; |
| 3 | |
| 4 | public class MapExercises { |
| 5 | /** Returns a map from every lower case letter to the number corresponding to that letter, where 'a' is |
| 6 | * 1, 'b' is 2, 'c' is 3, ..., 'z' is 26. |
| 7 | */ |
| 8 | public static Map<Character, Integer> letterToNum() { |
| 9 | return null; |
| 10 | } |
| 11 | |
| 12 | /** Returns a map from the integers in the list to their squares. For example, if the input list |
| 13 | * is [1, 3, 6, 7], the returned map goes from 1 to 1, 3 to 9, 6 to 36, and 7 to 49. |
| 14 | */ |
| 15 | public static Map<Integer, Integer> squares(List<Integer> nums) { |
| 16 | return null; |
| 17 | } |
| 18 | |
| 19 | /** Returns a map of the counts of all words that appear in a list of words. */ |
| 20 | public static Map<String, Integer> countWords(List<String> words) { |
| 21 | return null; |
| 22 | } |
| 23 | } |
nothing calls this directly
no outgoing calls
no test coverage detected