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

Looking for puzzle challenges?

Questle

Guess the hidden word in 6 tries

Equation Dash

Hit the target using given numbers

Hangman

Guess the word before the man falls

Daily Puzzles App

15+ word & logic games. Build your daily streak!

App Store

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