How to iterate map in collection framework?
Answer Posted / navin kumar
Map<String,String> map = new HashMap<String,String>();
map.put("A","Rohan");
map.put("C","Sohan");
map.put("B","Ram");
for(String key : map.entrySet()){
sop(key);//A,C and B as key
sop(map.get(key))//Rohan,Sohan and Ram as values
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is sid for to trasport the object along the land scape:/
How would record time in your sap hr system?
How do I view my wordpress database?
What is autonomous robot?
What happens if you add your just created object to a mutable array, and you release your object?
explain advantages of myisam over innodb? : Sql dba
Explain the application of AI in automated grading systems.
what is the difference between a thread and a computer process?
Have You Worked Earlier? If yes then why did you leave that Company?
What does || mean in programming?
Where do you find standard reports in hr?
How do I remove a page border in word?
What is peering in aws?
What are disadvantages of REST web services?
What can windows server do?