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

 
 


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

View Answers









Related Pages:
Map

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.