Placer les valeurs dans un hashset
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Tytrox
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));