hashset is an object ? 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>();
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
HashSet<String> h = new HashSet<String>();