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 / venkat

hashMap.keySet().toArray(); // returns an array of keys
hashMap.values().toArray(); // returns an array of values

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check if a number is a perfect square?

934


What is meant by object oriented programming – oop?

921


How does java pattern compile work?

908


What is :: operator in java?

912


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

981


What is the difference between the paint() and repaint() methods?

1009


How to compare strings in java?

917


How do I get a substring?

926


Which package has light weight components?

932


Why do you canvas?

984


What is java ceil?

980


What is a null class?

919


What is the static method?

1018


What are functions in java?

897


What is the function of java?

949