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
How do you check if a number is a perfect square?
What is meant by object oriented programming – oop?
How does java pattern compile work?
What is :: operator in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What is the difference between the paint() and repaint() methods?
How to compare strings in java?
How do I get a substring?
Which package has light weight components?
Why do you canvas?
What is java ceil?
What is a null class?
What is the static method?
What are functions in java?
What is the function of java?