Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions how to get data from list to map with out using a loop?

Have Programming Question? Ask it here!
 
 
 


RajaSekharReddy
how to get data from list to map with out using a loop?
0 Answer(s)      2 years and 3 months 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.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com