11. Generalizations


#1



 
	if(2015 < 2012) {

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

}
  else {

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


#5

I assumed you have to input a false boolean in order for the else block to take effect. Hence (2015 < 2012) for "Upgraded to the future!"


#6

okok.. You're right.. I see... It's System.out.println not system....


#9

A post was split to a new topic: 4. I now need help on 4/13 on OOP java lol


#10

A post was split to a new topic: After changing the expression in the if block still getting an error


#11

A post was split to a new topic: Tried if (2015 < 2016) if (!(2015 < 2016) didn't work


#12

Comment out the 4th line. That was just there so you that you type false. It shouldn't actually be in the code. Then do if (2016 < any number below 2016) { and then it will work


#13

A post was split to a new topic: It didn't work ! what can i do ?!


#14

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