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 many types of the indexof method are there for strings?
Can a constructor have different name than a class name in java?
What is jit and its use?
What is navigable map in java?
How many bytes is a url?
What are benefits of java?
Why string is not thread safe?
List two java ide’s?
explain autoboxing in java?
How many bits is a word?
Where will it be used?
Can we use string in switch case in java?
What is data movement?
Can you access the private method from outside the class?
Which collection is ordered in java?