You are not logged in. Lock_open    

Browse tutorials by Tag - orloops

Confusing And and Or (BlueJ) Time: 5:24 Gb
Average:
  • Currently 3.0/5 Stars from 55 ratings
  •  
  •  
  •  
  •  
  •  
55 ratings
Your Rating:
  • Currently 0.0/5 Stars from 55 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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, !=.