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 are different access specifiers in java?

1021


What are the different types of collections in java?

962


What does yield method of the thread class do?

1039


What are class types in java?

1080


Where will it be used?

1944


what is the difference between a threads start() and run() methods? : Java thread

1015


Which collection is ordered in java?

981


What is the use of runnable interface?

1175


How to invoke external process in java.

1081


What must a class do to implement an interface in java programming?

1064


How we create object in copy constructor?

1128


Why do we create public static method in java?

1116


How can constructor chaining be done using this keyword?

1277


What is synchronization and why is it important in java programming?

943


Is c better than java?

964