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 the two parts of a conditional statement?
Can we extend singleton class?
Explain purpose of sleep() method in java?
What is public static void main?
What is fundamental datatype?
What technique can be employed to compare two strings?
What is constructor chaining and how is it achieved in java?
What is difference between path and classpath in java?
What language is java written?
What is set string?
Which sort is best in java?
What are the different types of data structures in java?
Can we have multiple public classes in a java source file?
How hashmap increases its size in java?
What is the difference between size and length in java?