Move Two Robots

You are given a Robot class that contains the following methods

  1. void moveOneStepUp() -> This method moves the robot one step up
  2. void moveOneStepLeft() -> This method moves the robot one step to the left
  3. void moveOneStepRight() -> This method moves the robot one step to the right
  4. void moveOneStepDown() -> This method moves the robot one step down.

You are given two Robot objects that initially start at the following coordinates.

  1. firstRobot starts at X = 1, Y = 2
  2. secondRobot starts at X = 3, Y = 3

We want both robots to go to the same point! So we want to move both robots to X = 5, Y = 6.

Complete the following program to move both robots to the X = 5, Y = 6

Note: You only need to complete Main class in Main.java file. Robot class in Robot.java file is provided to you.

Test your solution here
when it passes, copy it and submit it here so your coach can grade it.