<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.>
<In what way does your code behave incorrectly? Include ALL error messages.>
if(2015 < 2012) {
system.out.println("Stuck in the past...");
}
else {
System.out.println("Upgraded to the future!");
}
I assumed you have to input a false boolean in order for the else block to take effect. Hence (2015 < 2012) for “Upgraded to the future!”
1 Like
okok… You’re right… I see… It’s System.out.println
not system....
Comment out the 4th line. That was just there so you that you type false. It shouldn’t actually be in the code. Then do if (2016 < any number below 2016) { and then it will work
system
closed
September 3, 2016, 4:22pm
#14
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.