X882: Jeroo turnOrHop()

For this question you will write a method that takes a jeroo named ken. Write an if statement to handle the following logic: If ken has a flower and can see a flower ahead, make ken turn to the left and hop three times. Otherwise, make ken hop five times.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.