how copy the hashmap object into arraylist at java program?
Answer Posted / venkat
hashMap.keySet().toArray(); // returns an array of keys
hashMap.values().toArray(); // returns an array of values
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What are internal variables?
Is string an object?
Can you override private or static method in java?
Wha is the output from system.out.println(“hello”+null); ?
Explain an intermediate language?
What is are packages?
What is a conditional equation?
How do you create a bulleted list?
How to sort an array from smallest to largest java?
Which is better list or arraylist in java?
What is the difference between Java1.4 and Java1.5
Is string serializable in java?
How will you initialize an Applet?
What are the java ide's? Explain
What is java used for on a computer?