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

Is it safe to install java on my computer?

544


How do you use compareto method?

538


Can abstract class have private constructor?

500


What are exceptions

646


Why we used break and continue statement in java?

566






what is static import in java? Explain

559


Is java se free?

524


Can we use switch statement with strings?

624


Can a static method be final?

558


Why is serialization required?

548


What is set string?

599


Can vector have duplicates in java?

511


What are the major advantages of internal iteration over external iteration?

581


Can we clone singleton object in java?

573


What is difference between == equals () and compareto () method?

532