how copy the hashmap object into arraylist at java program?

Answer Posted / deepak

new ArrayList(hashmap.values());

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can force the garbage collection?

722


What is the difference between access specifiers and access modifiers in java?

814


Why can't we use static class instead of singleton?

688


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

683


What is boolean law?

710


Why enumeration is faster than iterator?

696


Can we have any code between try and catch blocks?

731


5 Coding best practices you learned in java?

809


What does java edition mean?

727


How does a for loop work java?

752


Is void a data type?

701


What is pojo class in java?

708


What does I ++ mean?

799


What is double parsedouble in java?

734


If a variable is declared as private, where may the variable be accessed?

768