Java Conditionals and Control Flow 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.>

https://www.codecademy.com/courses/learn-java/lessons/conditionals-control-flow/exercises/generalizations-conditionals
<In what way does your code behave incorrectly? Include ALL error messages.>
Print the message in the else block.

```

Replace this line with your code.
if(2017<2016){

		System.out.println("Stuck in the past...");

	}else {

		System.out.println("Upgraded to the future!");

	}<img src="//codecademy-discourse.s3.amazonaws.com/original/5X/9/0/4/5/90453503cf397425790facd14336686c0438fa21.PNG" width="690" height="344">
<do not remove the three backticks above>

boolean tricky should be false

boolean tricky=false;

and
don’t print the value of the variable tricky remove that

1 Like

thanks allot man i was struggling with this

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