From 65177594c122895eb2f388bb88393f43d7dc2539 Mon Sep 17 00:00:00 2001 From: am Date: Mon, 13 Nov 2023 21:24:13 +0300 Subject: [PATCH] update Calc --- app/src/main/java/hexlet/code/games/Calc.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/hexlet/code/games/Calc.java b/app/src/main/java/hexlet/code/games/Calc.java index b3b0733..fa1d391 100644 --- a/app/src/main/java/hexlet/code/games/Calc.java +++ b/app/src/main/java/hexlet/code/games/Calc.java @@ -15,12 +15,12 @@ public static void genGame() { var num2 = Utils.getRandom(RANDOM_MIN, RANDOM_MAX); var action = mathAction(); gameData[i][0] = num1 + " " + action + " " + num2; - gameData[i][1] = calcAction(num1, num2, action); + gameData[i][1] = calculate(num1, num2, action); } Engine.runGame(DESCRIPTION, gameData); } // Calculation of generated data - public static String calcAction(int num1, int num2, String action) { + public static String calculate(int num1, int num2, String action) { var result = 0; if (action.equals("+")) { result = num1 + num2;