Please help! Boolean expression


#1

.
Use a Boolean expression that will print out the code in the else block of the if/else statement.

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'm not sure what your question is but you should remove those ().


#3

I'm not sure where the boolean expression is used to print out the code in the else block?


#4

This is it:

If it evaluates to true then the if block is processed, if it evaluates to false then the else block is processed.


#5

Thank you so much. I was over thinking the instructions. I thought the boolean expression went after the else. I understand this better now lol