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 is the purpose of the system class in java?
What is object cloning in Java?
what are synchronized methods and synchronized statements? : Java thread
What is token in java?
What are the ways in which a thread can enter the waiting state?
What is parsing in grammar?
What is data and its types?
What access modifiers can be used for variables?
What is the difference between inheritance and encapsulation?
Is oracle java 11 free?
Explain notifyall() method of object class ?
Explain purpose of sleep() method in java?
What is the purpose of garbage collection in java? When is it used?
How to display all the prime numbers between 1 and 100
What are the drawbacks of reflection?