Video
See also:
CodingBat Practice> sumDouble
int sum = a + b;
CodingBat Practice> sleepIn
(vacation == true)
Yes: (vacation)
return false;
last, "fall through" past other cases above.
CodingBat Practice> monkeyTrouble
if (aSmile && bSmile) {
return (aSmile && bSmile || !aSmile && !bSmile);
More problems to try
CodingBat Practice> parrotTrouble
CodingBat Practice> posNeg
CodingBat Practice> dif21
CodingBat.com code practice. Copyright 2012 Nick Parlante.