check if value exists in hashset java

Java
 hSet.contains(new Integer("3"));
Source

Also in Java: