100 Days of Java challenges

Day 16 - Enums

Write a program which performs the following tasks:
  • Initialise an enum named weekdays which contains strings from Monday to Sunday
  • Print all the elements in the enum weekdays

Reading List:
1. When should you use enums in Java programming?
2. Can we remove elements from enums? And why?

      Community|Blog|Youtube Hunt|Logic Puzzles|Careers|Contact Us
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024