diff --git a/app/src/main/java/hexlet/code/games/Calc.java b/app/src/main/java/hexlet/code/games/Calc.java index b99d4e8..baf855a 100644 --- a/app/src/main/java/hexlet/code/games/Calc.java +++ b/app/src/main/java/hexlet/code/games/Calc.java @@ -58,14 +58,18 @@ public void changeQuestion() { this.leftArg = Engine.randomIntValue(leftBorder, rightBorder); this.rightArg = Engine.randomIntValue(leftBorder, rightBorder); int numberOfOperation = Engine.randomIntValue(leftBorderOfOperation, rightBorderOfOperation); + + final int startPlus = 1; + final int startMinus = 2; + final int startMultiplication = 3; switch (numberOfOperation) { - case 1: + case startPlus: plus(); break; - case 2: + case startMinus: minus(); break; - case 3: + case startMultiplication: multiplication(); break; default: