check if value present in a hash code example Example: check if value exists in hashset java hSet.contains(new Integer("3"));