public static void main(String[] args) {
Map<Object, Object> m = new HashMap<Object, Object>();
m.put("1", null);
m.put(null, "1");
m.put("1", "1");
m.put(null, null);
Iterator<Map.Entry<Object, Object>> iter = m.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry<Object, Object> entry = iter.next();
System.out.println(entry.getKey()+" value: "+entry.getValue());
}
}