+ 1
Why am I getting error while using switch expression in java
my code link: https://code.sololearn.com/c9dHCNo0n9O7
3 Answers
+ 6
Line 5:
Double definition of variable <day>
[delete line]
Line 7:
Call to nextInt() method was missing parentheses
[add parentheses -> day.nextInt()]
Line 12:
Excess (unnecessary closing curly bracket)
[delete line]
No statement to print <daytype>, leads to "No output"
+ 3
I fixed it
+ 2
Good job! đ