+ 1
Why we should use or operator I. Java In loops.
Java loops
4 odpowiedzi
+ 5
When you have more then one condition foe stopping the loop you should use the or/and operator.
The or operator is for separating between the conditions and make each one like a single condition.
The and operator is for connecting conditions and make some conditions to one condition.
+ 4
If you are having multiple conditions & if any of the condition evaluates to true then you have to execute some block of code then OR(||) is used between the conditions, it is the general use of this operator.
0
Thx everyone