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
Is zero a natural number?
How we can run a jar file through command prompt in java?
What is codebase?
How does map works in java?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
Mention some interfaces implemented by linked list in java.
How do you allocate memory to object?
Can we write multiple catch blocks under single try block?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is array length in java?
Is null == null in java?
what do you understand by the term string with respect to java?
Where and how can you use a private constructor?
What is the default execution method in java?
How does queue work in java?