diff --git a/reports/Отчёт 1.docx b/reports/Отчёт 1.docx new file mode 100644 index 0000000..5b73bae Binary files /dev/null and b/reports/Отчёт 1.docx differ diff --git a/reports/Отчёт 2.docx b/reports/Отчёт 2.docx new file mode 100644 index 0000000..9936c6a Binary files /dev/null and b/reports/Отчёт 2.docx differ diff --git a/src/main/java/com/labs/LabWork/Calculator/Service/CalculatorService.java b/src/main/java/com/labs/LabWork/Calculator/Service/CalculatorService.java index f5fcd6e..611db11 100644 --- a/src/main/java/com/labs/LabWork/Calculator/Service/CalculatorService.java +++ b/src/main/java/com/labs/LabWork/Calculator/Service/CalculatorService.java @@ -29,6 +29,6 @@ public class CalculatorService { public Object division(Object item1, Object item2, String type){ final ICalculator calculator = (ICalculator) applicationContext.getBean(type); if (type.startsWith("int")) return calculator.division(Integer.parseInt(item1.toString()), Integer.parseInt(item2.toString())); - return calculator.subtraction(item1, item2); + return calculator.division(item1, item2); } } \ No newline at end of file