0
question on operators
it says that if its true then it will execute.... how do we know if its true or not? And how does it check?
4 ответов
+ 1
boolean isHuman = false;
if (isHuman){
// if isHuman is true, this block will be excuted }
else {
/*if isHuman is false, this block will be executed; in the current context, this (else) block will be executed*/}
0
thank you smit :) i get it now
0
the if else operator will check if the condition is true then it will execute if else it wont,
the process is automatic
0
the condition you have in your parentheses will be evaluated and the boolean value will be the one that the compiler will act on to print your line(s) of code