How to iterate through a HashMap?
Map<String, String>objConfiguration = new HashMap<String,String>(); java.util.Set<String> set = objConfiguration.keySet(); Iterator<String> itr = set.iterator(); while(itr.hasNext()){ String key = itr.next(); String value = objConfiguration.get(key); //you can put any condition here. }
i hope you got the point.