value set to list
Hello, I am trying to take a map whose values are sets and a second map which is empty whose values are lists and fill in the second map with the same key/value from the first map and leave the first map untouched. the second map should have all the key thats in the first map but associated with it is a list of all the elements that are in the set.
i have this so far.
public static<K,E> void valuesSetToList (Map<K, Set<E> m1, Map<K, List<E>> m2)
List<List> l = new ArrayList<List>();
can someone help me??