Boolean Java


#1

HI, So i'm supposed to make the 'else if' statement go true, I tried making it (round < 12) but that didn't work, please help! (I deleted the missing code to make it easier to see).

	if (round > 12) {

		System.out.println("The match is over!");

	} else if (round < 12) {     <--------------

		System.out.println("The match is underway!");

#2

Hello,

Try setting the value of round minor than 12, that should make the else if true. Something like:

int round = 1;

Otherwise, show all the code, so we can see what is going on. :slight_smile:


#3

Thank you, that worked!:slight_smile:


#4

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