Getting used to Parson's Problems: Picking up things

DIRECTIONS:

Construct a working program by dragging & dropping lines from the left to the right. You'll need to change the order of the lines and you'll need to adjust the indentation correctly.

You should have the robot move one step forwards (so that it's on the first Thing), then use a loop to pick up all the Things.  After that, have the robot turn left and move one final space.

   import becker.robots.*;

   public class ICE_05_Demo_Pickup_Things extends Object
   {
      public static void main(String[] args)
      {
         City wallville = new City(6, 8);
         Robot rover = new Robot(wallville, 4, 0, Direction.EAST, 0);
      
         new Thing(wallville, 4, 1);
         new Thing(wallville, 4, 2);
         new Thing(wallville, 4, 3);
         new Thing(wallville, 4, 4);

      // FIX THIS PART!!!
      }
   }

Check your work by clicking on the button labeled "Get Feedback" at the bottom of this page.