11/11 Generalizations Error

<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/generalizations-conditionals?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>
I am running the code below. I am on the second instruction, and it isn’t working.

```

public class GeneralizationsB {
public static void main(String args) {

// ( 3 >= 3 && !(true || true) ) 
boolean tricky = true;
if(tricky=false) {

		System.out.println("true");

	}else {

		System.out.println("false");

	}



}

}

<do not remove the three backticks above>

boolean tricky should be false

boolean tricky = false;

and just change the Boolean expression in the if statement nothing else

dont change the print statements.

so your code should be like

if(condition) { //here give your own condition

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

}else {

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

}

I tried that and still says I got it wrong for the if condition.

if(2015>2016)
{
System.out.println(“Upgraded to the future!”);
}

else

{
System.out.println(“Stuck to the past…”);
}

i too face the same error…someone please help…i’m not able to proceed further eacuse of this

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