In java.
Write a method static <K, V> void addToMultiMap(Map<K,
Set<V>> map, K key, V value). addToMultiMap must add the
value, if present, to the set associated with the given key,
creating the set if necessary. You may assume all keys already in
the map are associated with non-null values.
For full credit, your method must include generic types, and
must not contain unnecessary method calls or loops, even if they do
not otherwise impact correctness. You may assume Map,...