11. Generalizations

<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....

A post was split to a new topic: 4. I now need help on 4/13 on OOP java lol

A post was split to a new topic: After changing the expression in the if block still getting an error

A post was split to a new topic: Tried if (2015 < 2016) if (!(2015 < 2016) didn’t work

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

A post was split to a new topic: It didn’t work ! what can i do ?!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.