how to get data from list to map with out using a loop?

Ads

 
 

Share on Google+Share on Google+

RajaSekharReddy
how to get data from list to map with out using a loop?
0 Answer(s)      5 years ago
Posted in : Java Interview Questions
List list=new ArrayList();

list.add("raja");
list.add("1");

list.add("puja");
list.add("13");

list.add("rajani");
list.add("21");

list.add("hari");
list.add("15");

how to get this data into map with out using a loop. i want this data like this--map.put(name,id); Is it possible to do without using loop.

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Advertisements