Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to iterate map in collection framework?



How to iterate map in collection framework?..

Answer / 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

More Software Interview Questions

Come up with an algorithm to shuffle a deck of cards. Discuss how uniform a distribution your solution would achieve, and how you could potentially improve upon it.

0 Answers  


How to Monitor the Batch Jobs?

0 Answers  


To fill a tank, 25 buckets of water is required. How many buckets of water will be required to fill the same tank if the capacity of the bucket is reduced to two-fifth of its present ?

0 Answers   Zoho,


How can you load large amounts of data from flat-text files?

0 Answers  


2+2*4-8/2

1 Answers   Infosys,


Do you know the S/4 HANA?

0 Answers  


UI Development questions

0 Answers  


what is FORMAT keyword

0 Answers  


Where we can activate Rebates?

0 Answers  


How to ignore some file in mvc

1 Answers   Chetu India,


A fires 5 shots to B's 3 but A kills only once in 3 shots while B kills once in 2 shots. When B has missed 27 times, A has killed:

0 Answers   Zoho,


How to manage Payment terms in Credit Management?

0 Answers  


Categories