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

Is zero a natural number?

974


How we can run a jar file through command prompt in java?

912


What is codebase?

943


How does map works in java?

941


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1069


Mention some interfaces implemented by linked list in java.

974


How do you allocate memory to object?

924


Can we write multiple catch blocks under single try block?

1035


what is the swingutilities.invokelater(runnable) method for? : Java thread

991


What is array length in java?

911


Is null == null in java?

1035


what do you understand by the term string with respect to java?

977


Where and how can you use a private constructor?

921


What is the default execution method in java?

1128


How does queue work in java?

934