A very good introduction to this type is available here: http://codingbat.com/doc/java-if-boolean-logic.html
This exercise was converted to PLM from the excellent exercising site http://codingbat.com/