X829: LightBot Method Calls 10

For the question below, assume we are working with a simplified LightBot that can perform the following actions

  • Turn Left
  • Turn Right
  • Move Forward
  • Jump

Each of these actions is represented by a method call:

  • Turn Left --> turnLeft()
  • Turn Right --> turnRight()
  • Move Forward --> moveForward()
  • Jump --> jump()

Just like in the LightBot puzzles, there is also a method called spin() that causes the LightBot to turn left four times.

In the code below, remove the method call to spin(). Note, this does not mean to delete the whole spin() method, just the call to the method.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.