Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how copy the hashmap object into arraylist at java program?

Answer Posted / fellow java novice

/* HashMap hm; assume hash map has array list objects in it


ArrayList al = (ArrayList) hm.get("name by which arraylist
sits in the hashmap");

/* the crux of the matter is the user of 'get' to access
from hashmap

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1327


What are measurable parameters?

1068


What is the null?

1015


What is the difference between a choice and a list?

1076


What is java and why do we need it? Explain

1120


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1997


Can we able to pass objects as an arguments in java?

1014


How many types of operators are there?

975


What is difference between jdk,jre and jvm?

1116


How will you add panel to a frame?

1105


How does thread synchronization occurs inside a monitor?

1096


What are the types of inner classes (non-static nested class) used in java?

1054


What is difference between char array and string?

1106


How does remove work in java?

961


Can constructor be synchronized?

932