user100DaysOfCode
CommunityDevTermsResources|Login

Loading

Java Roadmap

Day 20: Set/HashSet

Write a program that performs the following tasks:
  • 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
<Prev|Next>

Learning Resources |View Complete Plan

Day 20 - Set/HashSet

Write a program that performs the following tasks:
  • 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
<Prev|Next>

Learning Resources |View Complete Plan

      Sponsor Us|Community|Blog|YoutubeCareersContact UsDisclaimerPrivacy PolicyTerms of Service
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024