Java Java Basics Perfecting the Prototype Censoring Words - Using Logical ORs

Gregory Jay
Gregory Jay
903 Points

Correct answer for Bob's Three Kids

When you answer the question correctly the following message is the response:

"Well done! Good job, this one is tricky. Bob is older than 50 so it doesn't matter what the rest of the options are."

Bob is not older than 50. He is 50. The response should be "...Bob is older than 30..."

2 Answers

Hi Gregory Joshua,

can you tell us please what exact problem you have? Where are you stuck? With what exactly do you need help?

Gregory Jay
Gregory Jay
903 Points

I am just making you aware of a typo. This may confuse some newcomers to Java since the explanation does not match the conditions of the if-statement. Bob's age is 50 so he is not older than 50. Furthermore, the conditional is based on him being older than 30.

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Got it thanks for the response! Will fix now! See we all make errors ;)