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
Can we override private method?
Explain the inheritance?
Is null a keyword in java?
What is the relationship between clipping and repainting under awt?
Is age a discrete variable?
Difference between start() and run() method of thread class?
What is null statement?
What are the restrictions imposed by a Security Manager on Applets?.
Why is a string immutable?
What is the exact difference in between unicast and multicast object? Where we will use?
What the difference is between execute, execute Query, execute Update?
What are the types of arrays in java?
What are memory tables?
What is function and its uses?
What is the symbol for line break?