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

Can an arraylist be empty?

556


What is the use of hashmap in java?

543


why java uses class level type casting ?

2242


What Is Composition?

569


What do you mean by constructor?

540






What is preparedstatement in java?

549


What is the latest java version?

550


Explain the private field modifier?

602


What are the different ways of implementing thread? Which one is more advantageous?

523


Why does java not allow multiple public classes in a java file ?

3423


What do you mean by platform independence? What is an interface?

557


What is the driver class?

560


What is the largest long allowed by java?

530


What is sleep method?

614


Can we have two main methods in a java class?

531