import java.util.*;
public class MyClass {
public static void main(String args[]) {
Set<String> letters = new HashSet<>(Arrays.asList("a", "b", "c", "d", "a", "a", "e"));
System.out.println(letters);
letters.remove("a");
System.out.println(letters);
}
}
/*
run:
[a, b, c, d, e]
[b, c, d, e]
*/