Need help with 11- Generalizations, probably bug

<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.>
I have done all tasks mentioned in the exercise but it still stops me from moving forward.
I stuck at the second step, plz help.

```

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

// ( 3 >= 3 && !(true || true) ) 
boolean tricky = false;
System.out.println(tricky);

if(2015 > 2016) {

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

	}else {

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

	}


int subwayTrain = 5;

	switch (subwayTrain){

		case 1 : System.out.println("This is a South Ferry bound train!");
							break; 
		case 5 : System.out.println("This is a Brooklyn bound train!");
							break;
		case 7 : System.out.println("This is a Queens bound train!");
							break;
		default:
			System.out.println("I'm not sure where that train goes...");

	}

}

}

<do not remove the three backticks above>

dont need to print tricky

System.out.println(tricky); //remove this line

1 Like

Solved my problem!
Thank you so much!

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