Java tutorial
//package com.java2s; import java.util.Set; public class Main { public static boolean emptySet(Set<?> set) { return (null != set && set.size() <= 0); } }