A set is a collection like Map. The difference is sets:
Do not allow duplicate items. If any object exists with same hashCode() result and equality with equals() method, the new object is not put.
Don’t use explicit key inside the classes
Access the source codes, exercises and their solutions at
https://www.udemy.com/java-8-core-tra... with a special price.