public void doIt(UrRobot arobot) { arobot.move(); arobot.putBeeper(); // beeper 1 arobot.move(); arobot.putBeeper(); // beeper 2 arobot.turnLeft(); }