Buat hashset dengan satu anggota
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));
Tytrox
Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));