ARTICLE AD BOX
public class Main {
public static void main(String[] args) {
boolean isLightOn = false;
if (isLightOn == false) {
System.out.println("The light is on.");
} else {
System.out.print ("the light is off");
}
}
}
/* ok so I made isLightOn false, and if isLightOn is false which it is, its ment to print "light is on". I ran the code and it printed the opposite, it ran what should only run when isLightOn is true "the light is off". the code works, its not broken I just don't understand the output.
I'm sorry btw, i am very new to java. */
