Java Conditionals and Control Flow 11.generalizations


#1


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

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">


#2


#3

boolean tricky should be false

boolean tricky=false;

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


#4

thanks allot man i was struggling with this


#5

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