Stuck in the past [resolved]


#1

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

  1. Change the Boolean expression in the if statement so that your program will print out the code in the else block instead.
  • myAnswer:
	if(2 < 1) {

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

		}else {

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

		}
  • Which print in the console:
Upgraded to the future!

But I can’t continue:
“Print the message in the else block.”


#2

There was some error with the first part of the code.


#3

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