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

How to check if a list is sorted in java?

1017


What is stringjoiner ?

941


What are the 4 types of characters?

990


Explain the importance of finally over return statement?

1026


Difference between this() and super() ?

1084


What is the reflection?

982


Where is the find and replace?

990


Is intellij better than eclipse?

1065


In how many ways we can create threads in java?

1189


What super () does in java?

895


Write a program to print the pattern given below

921


What is a type parameter in java?

978


Why array is used in java?

949


In java, how we can disallow serialization of variables?

976


What is Java Shutdown Hook?

1173