Iterate HashMap getKey getValue Java Example

 HashMap<String,Locale> _mapOfLocale = new HashMap<String,Locale>();
    _mapOfLocale.put("French",Locale.	FRENCH	);	
    _mapOfLocale.put("German",Locale.	GERMAN	);	
    _mapOfLocale.put("Italian",Locale.	ITALIAN	);	
 
    for (Entry<String, Locale> entry : _mapOfLocale.entrySet()) {
 
       System.out.println(entry.getKey());
       System.out.println(entry.getValue());
 
      }
This entry was posted in Android Examples Code, Array,List,Collections and tagged , , . Bookmark the permalink.


Comments are closed.



4,532 views