X887: Jeroo disables net

You are writing code using a jeroo named charles who is currently holding a flower. Change the condition in this if-then-else statement so that if `charles sees a net ahead, charles will toss his flower to disable the net, and otherwise will hop.

Your Answer:

x
 
1
if (charles.seesFlower(LEFT))
2
{
3
    charles.toss();
4
}
5
else
6
{
7
    charles.hop();
8
}
9
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.