id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

Warmup-1 > monkeyTrouble
prev  |  next  |  chance

We have two monkeys, a and b, and the parameters aSmile and bSmile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return true if we are in trouble.

monkeyTrouble(true, true) → true
monkeyTrouble(false, false) → true
monkeyTrouble(true, false) → false

...Save, Compile, Run         

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  Warmup-1

Forget It! -- delete my code for this problem 106.0

Copyright Nick Parlante 2006-09 - privacy