Java tutorial
//package com.java2s; import java.util.HashSet; public class Main { @SuppressWarnings("rawtypes") public static boolean isEmptySet(HashSet target) { if (target == null || target.size() == 0) { return true; } return false; } }