9/11 If Statement


#1

Good day!
My code:
public class If {
public static void main(String[] args) {
int a = 9;
int b = 2;
boolean compare = a > b;
if (compare) {

		System.out.println("Control flow rocks!");

	}
	
}

}

But I got question: "Did you use a Boolean expression that evaluates to true?"
What's wrong in code?

Thank you in advance!


#2

System.out.println("Control flow rocks!");

system doesn't permit to change anything.you just have to do what you are told to do.


#3

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