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 etl process. How many steps etl contains explain with example?
What are the various access specifiers in java?
how you can record a slide show?
What are three versions if splunk?
Both labor and machine categories exist. How would you calculate the process time?
What types of files you know?
What is a thin client and thick client?
How do you upgrade pip?
What is difference Between Authentication and authorization?
What are the different file processing modes supported by python?
What are delegates?
What is the difference between package dependencies and development dependencies?
How do I change the default font in powerpoint 2013?
The purpose of the Initiation process is to: A. Formally recognize the existence of a project or project phase B. Formally recognize the need that brought about the project be it marketing demand, customer requests, business need, technological advances, or legal requirements C. Formally recognize the stakeholders of the project and identify them in the project charter D. Formally recognize the project sponsor and document his or her project goals
What are different html tags?