Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static boolean mapNotEmpty(Map<?, ?> map) { return !(null == map || map.size() == 0); } }