Boolean Java

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!");


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:

Thank you, that worked!:slight_smile:

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