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
Explain application layer?
What is use of apache web server?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Please explain what is laravel?
What is ex and vi?
What are bootstrap grids?
Describe the parts of assembly.
Tell me about the tax reports in sap
How far can a network go? (the distance problem)?
What do you mean by mstr? What are the different types of mstr objects?
what s test block ratio? please any one answer me..
Is it mandatory to use the model/ database layer?
Mention the definition of cobol in varchar field.
When you open QTP, how many sheets you can see?
What is the file extension for c#?