Browse tutorials by Tag - confusion
Confusing And and Or (BlueJ)
Time: 5:24
|
|
| Average: 55 ratings | Your Rating: |
| Categories: Conditional Loop Logic Error BlueJ | |
| Description: click for more...
This video shows the incorrect uses of || (or) in a compound boolean expression to control a validation loop. The incorrect boolean expression matches with commonly used English “if the user doesn’t answer ‘yes’ or the user doesn’t answer ‘no’ then make them type in another answer.” This expression is complicated by the fact that the “not” is used in conjunction with .equals is harder to parse than, for example, !=. |
|