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

What are internal variables?

1001


Is string an object?

1118


Can you override private or static method in java?

978


Wha is the output from system.out.println(“hello”+null); ?

1145


Explain an intermediate language?

971


What is are packages?

1035


What is a conditional equation?

1046


How do you create a bulleted list?

1255


How to sort an array from smallest to largest java?

988


Which is better list or arraylist in java?

868


What is the difference between Java1.4 and Java1.5

2315


Is string serializable in java?

1023


How will you initialize an Applet?

1151


What are the java ide's? Explain

1053


What is java used for on a computer?

995