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
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
What are measurable parameters?
What is the null?
What is the difference between a choice and a list?
What is java and why do we need it? Explain
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Can we able to pass objects as an arguments in java?
How many types of operators are there?
What is difference between jdk,jre and jvm?
How will you add panel to a frame?
How does thread synchronization occurs inside a monitor?
What are the types of inner classes (non-static nested class) used in java?
What is difference between char array and string?
How does remove work in java?
Can constructor be synchronized?