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