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

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

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

Ads









Related Tutorials/Questions & Answers:
how to get data from list to map with out using a loop?
How to Get The Data from Excel sheet into out jsp page???
Advertisements
How to get the data from the database using Servlet or JSP program
How to get data from Oracle database using JSP
How to get the data from the database (Oracle) in console or in ie using servlet or jsp as Front end
how to get data from database into dropdownlist in jsp
how to get data from database into dropdownlist in jsp
how to get data from database into dropdownlist in jsp
JSP Get Data Into Dropdown list From Database
How to get month name from date(like-25/06/2012) using java?
How can I get specific data from JSON
How to Retrieve Data from Facebook Using PHP
How to Retrieve Data from Facebook Using PHP
How to get day from date in Java using Calendar?
how to write to java program to get the particular data from the website
JSP Get Data From Database
How to get unique list in Hibernate using Criteria Query?
how to get data using dropdownlist, textbox and search button in jsp
view data from database using drop down list
How Can I get ArrayList of Data from jsp with ajax request
How can I get specific data from JSON
How to get the most recent data from the sql database
How to hold data in map
how to refresh google map using ajax by fetching lat long from database
How to export data from jsp to excel sheet by using java
How to export data from html to excel sheet by using java
please let me get code how to insert a data to mysql using setter and getter method by using java
please let me get code how to insert a data to mysql using setter and getter method by using java
How to export data from html file to excel sheet by using java
How to export data from html file to excel sheet by using java
How to display data in jsp from dao using java beans?

Ads