Convert List Object to Map Object

How to convert list object in to map object?

Questions by pragya03

Showing Answers 1 - 3 of 3 Answers

sree

  • Nov 6th, 2012
 


List list;
Map map = new HashMap();
for (Item i : list) map.put(i.getKey(),i);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions