<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/conditionals-control-flow/exercises/if-elseif-else?action=resume
<In what way does your code behave incorrectly? Include ALL error messages.>
it says this “Did you set the round
variable to an acceptable value? The code in the else if
block should run.”
```
Replace this line with your code.
<do not remove the three backticks above>
Did you figure this one out? cause I am stuck as well
The only way I could repeat this was by not initializing (setting a value for) the round variable.
int round; <-- no value is set
if (round > 12) {
System.out.println("The match is over!");
} else if (round > 0) {
…
please create a new post and tell us your problem. what did you try and where did you get stuck?
did you slove your problem?
you have to change it to = 4 or whatever your number is
system
closed
September 7, 2016, 11:19pm
#8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.