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
hai if any one having any project sample table structure please froward to my mail id tauseefwst@yahoo.com
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
Where do you download SAP NetWeaver trial version? What are the installation steps?
What is bubble sort algorithm in data structure sort and searching?
What is angular framework?
can you brief us about your hobbies and interests?
What does port 3050 resolve to as hexadecimal?
What are the two types of xml parsers?
Name aggregates methods of query builder.
How to Use Variables & For Loops in Delphi?
if the server has slow how to check the server performance? How to check server performance what is the procedure?
How to make a helper file in laravel?
Describe the difference between data and database administration.
What is node in Cassandra?
What is the role of static keyword for a class member variable?