From bb81632599337d4577794df725088d5ee2818c02 Mon Sep 17 00:00:00 2001 From: Acid Date: Sun, 15 Dec 2024 16:17:04 +0100 Subject: [PATCH] deafult -- fix --- src/main/java/core/basesyntax/RobotRoute.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/core/basesyntax/RobotRoute.java b/src/main/java/core/basesyntax/RobotRoute.java index af440857..950d9b1b 100644 --- a/src/main/java/core/basesyntax/RobotRoute.java +++ b/src/main/java/core/basesyntax/RobotRoute.java @@ -46,6 +46,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX >= toX & startY >= toY) { @@ -88,6 +90,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX >= toX & startY <= toY) { @@ -130,6 +134,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX <= toX & startY >= toY) { @@ -172,6 +178,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } }