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
How to check if a list is sorted in java?
What is stringjoiner ?
What are the 4 types of characters?
Explain the importance of finally over return statement?
Difference between this() and super() ?
What is the reflection?
Where is the find and replace?
Is intellij better than eclipse?
In how many ways we can create threads in java?
What super () does in java?
Write a program to print the pattern given below
What is a type parameter in java?
Why array is used in java?
In java, how we can disallow serialization of variables?
What is Java Shutdown Hook?