check if element exists in hashset java code example
Example 1: hashset contains java
HashSet<Integer> set = new HashSet<Integer>();
set.contains(110)//public boolean contains(Object o)
Example 2: check if value exists in hashset java
hSet.contains(new Integer("3"));