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

What is the purpose of the system class in java?

1093


What is object cloning in Java?

1145


what are synchronized methods and synchronized statements? : Java thread

1045


What is token in java?

1067


What are the ways in which a thread can enter the waiting state?

990


What is parsing in grammar?

1087


What is data and its types?

1049


What access modifiers can be used for variables?

1202


What is the difference between inheritance and encapsulation?

1194


Is oracle java 11 free?

1007


Explain notifyall() method of object class ?

1135


Explain purpose of sleep() method in java?

1167


What is the purpose of garbage collection in java? When is it used?

1090


How to display all the prime numbers between 1 and 100

1079


What are the drawbacks of reflection?

1059