Write a program that declares an enum DaysOfTheWeek and prints the name of each enum's instance on a new line, starting from SUNDAY.
Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming usage
Enum
Days of the week
Report a typo
Write a program in Kotlin
enum DaysOfTheWeek {
// write here
}
fun main() {
// write here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.