+ 2
Help me find the error.
7 Answers
+ 4
https://code.sololearn.com/c9yFeXPbE5d9/?ref=app
Ur bug fixed here
1. remove line that i commented
2. use day. next() in switch
3. use 1 as string "1" in cases becoz scanner scans a string not a number
4. some misplaced semicolons
+ 2
Default does not need the line "break".
+ 1
'age' is not defined
and on case 2 4 and 6 mack it println()
+ 1
Thank you Abhay
+ 1
You still need to close the scanner.
....
}
day.close();
}
}
0
How to define age estifanos ? I'm new to Java.
0
Int age = 1;