how copy the hashmap object into arraylist at java program?
Answer Posted / fellow java novice
/* HashMap hm; assume hash map has array list objects in it
ArrayList al = (ArrayList) hm.get("name by which arraylist
sits in the hashmap");
/* the crux of the matter is the user of 'get' to access
from hashmap
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What are different access specifiers in java?
What are the different types of collections in java?
What does yield method of the thread class do?
What are class types in java?
Where will it be used?
what is the difference between a threads start() and run() methods? : Java thread
Which collection is ordered in java?
What is the use of runnable interface?
How to invoke external process in java.
What must a class do to implement an interface in java programming?
How we create object in copy constructor?
Why do we create public static method in java?
How can constructor chaining be done using this keyword?
What is synchronization and why is it important in java programming?
Is c better than java?