Set<String> names = new HashSet<>();
names.add("John");
names.add("Jack");
names.add("John");
System.out.println(names); // [John, Jack]
names.remove("John");
boolean contains = names.contains("Jack"); // true
for (String name: names) {
System.out.println(name);
}
num |= 1 << x; //SET
set [--abefhkmnptuvxBCEHPT] [-o option-name] [argument …]
set [+abefhkmnptuvxBCEHPT] [+o option-name] [argument …]
request.session['key'] = 'value'
// Needed Output
Set(3) {10, 20, 2}
2