Hello tcstcs!
The javadoc for Set.add(E e) says;
"Adds the specified element to this set if it is not already present (optional operation). More formally, adds the specified element e to this set...