java custom method to add integer elements to a hashset without using a built in hashset library code example
Example 1: place values in a hashset
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Example 2: HashSet h = new HashSet();
HashSet<String> h = new HashSet<String>();