renisenbe
asked on
Java if-else shorthand
if (getNo() != null ? !compareNo(getNo(), b.getNo()) : getNo() != null) {
return 100;
}
Assuming getNo() is not null, does this mean that "return 100" runs if !compareNo(getNo(), b.getNo()) evaluates to true? What happens to the last expression (after the :)
return 100;
}
Assuming getNo() is not null, does this mean that "return 100" runs if !compareNo(getNo(), b.getNo()) evaluates to true? What happens to the last expression (after the :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER