Quote (ferf @ 22 Jan 2016 03:27)
as i said, i wanna know what (b1) or (b2) does.
with:
boolean b1, b2;
b1 = true;
b2 = false;
EDIT: Nvm i figured it out
from the link he gives you:
Quote
15.22.2. Boolean Logical Operators &, ^, and |
When both operands of a &, ^, or | operator are of type boolean or Boolean, then the type of the bitwise operator expression is boolean. In all cases, the operands are subject to unboxing conversion (ยง5.1.8) as necessary.
For &, the result value is true if both operand values are true; otherwise, the result is false.
For ^, the result value is true if the operand values are different; otherwise, the result is false.
For |, the result value is false if both operand values are false; otherwise, the result is true.