100 Days of Java challenges
Day 20 - Set/HashSet
Write a program that performs the following tasks:
Reading List:
1. Learn the differences between Set, HashSet, TreeSet, LinkedHashSet
- Initialise a Set of String values and add items to it
- Check if a value exists in the Set
- Remove a value from the Set
- Print the number of values(size) in the Set
- Print all the values one by one by looping through the Set
- Remove all values from the Set
Reading List:
1. Learn the differences between Set, HashSet, TreeSet, LinkedHashSet
Community|Blog|Logic Puzzles|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024