public static void printMap(HashMap mp) {
Iterator it = mp.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
String values = pairs.getKey() + " = " + pairs.getValue() ;
System.out.println(values);
logger.info(values) ;
it.remove();
}
}
No comments:
Post a Comment