Results 1 to 1 of 1
Thread: value set to list
- 10-02-2011, 12:46 AM #1
Member
- Join Date
- Jul 2011
- Posts
- 5
- Rep Power
- 0
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??
Similar Threads
-
How can you convert a List<String[]> to a List<Double[]>?
By jetnor in forum New To JavaReplies: 8Last Post: 11-04-2011, 08:30 PM -
Linked List, Array List time complexity
By Rick99771977 in forum New To JavaReplies: 4Last Post: 08-18-2011, 05:37 AM -
How do I list values of an arrays in a comma seperted list
By nmvictor in forum New To JavaReplies: 2Last Post: 11-22-2009, 05:24 PM -
How do I list values of an arrays in a comma seperted list
By nmvictor in forum New To JavaReplies: 3Last Post: 11-21-2009, 05:48 PM -
How to access ArrayList in List of List?
By alvations in forum New To JavaReplies: 5Last Post: 10-08-2008, 12:23 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks