Java tutorial
//package com.java2s; import java.util.Map; import java.util.Map.Entry; public class Main { public static boolean isEmptyMap(Map<String, ?> map) { if (map == null || map.isEmpty()) { return true; } for (Entry<String, ?> entry : map.entrySet()) { if (entry.getKey() == null || entry.getValue() == null) { return true; } } return false; } }