0
/ 50
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed.
You can access the number of hops performed so far by running the getHopCount()
method.
You will have access to a CountingJeroo object named leon
and an integer value
.
Write a series of conditions to handle the following logic:
value
equals 7, the jeroo should hop 7 times.value
equals 13, the jeroo should hop 13 times.Your feedback will appear here when you check your answer.