java create a set with values

Java
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Source

Also in Java: