Inicialize o hashset com valores java 9
Set<String> strSet = Set.of("Apple", "Ball", "Cat", "Dog");
Black Beaver
Set<String> strSet = Set.of("Apple", "Ball", "Cat", "Dog");