Hi everybody ,
Is there any java methods available by which I can take the ArrayList values and put into the HashMap's key or value ?
I am giving one example here :
I know I can do it by iterating the myList into loop & get those values & put into myMap.
Joined: Oct 13, 2005
It is quite easy to put keys or values into a Map, but you need to put them in pairs. If your elements from the Map go as Keys, what would you use as Values? If your elements from the Map go as Values, what would you use as Keys?