Setting a HashMap to a Collection and vice versa
Posted on 2004-09-13
I have a HashMap called userSelection that I want to convert to a java Collection and then after it is passed into a new class, I want to change the collection back to a HashMap. I work with collections and hashmaps all the time and have all the imports setup correctly, all I need is a few lines of code as an example to show how to convert these things back and forth.
Thanks in advance!! :)