You are not logged in. Lock_open    

Video: 'Confusing And and Or (BlueJ)'

Confusing And and Or (BlueJ) Time: 5:24
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
Narration language: Gb English
Flash_icon Watch Online 21.60Mb
Quicktime_small Download 5.18Mb (Right-click and select 'save as')

Description:

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, !=.



Leave a comment about this video...

What others are saying

englisct @ October 28, 2007 22:45

This video was helpful because I made the same mistake once. I was disturbed when the male voice came in from out of no where.

DaveProgramming @ October 28, 2007 22:31

I think that the people should be teaching how to not make that mistake they made and not pretend to be learning from their mistakes along with the user.