I completed the first exercise, but I don't know how


#1



https://www.codecademy.com/courses/learn-java/lessons/conditionals-control-flow/exercises/generalizations-conditionals


GeneralizationsB.java:4: error: not a statement
( 3 >= 3 && !(true || true) );
^
1 error


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

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

	if(2015 < 2016) {

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

		}else {

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

		}
	

	int subwayTrain = 9;

		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...");
	
		}

	}
}


#2

I do pass the first excersise because I typed " bolean tricky = false; "
I'm not truly understands the error.
Could someone please explain this to me.


#3

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