This commit is contained in:
Марат Заргаров 2023-05-01 20:09:55 +04:00
parent a2317af4cc
commit 8f92046359
3 changed files with 1 additions and 1 deletions

BIN
reports/Отчёт 1.docx Normal file

Binary file not shown.

BIN
reports/Отчёт 2.docx Normal file

Binary file not shown.

View File

@ -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);
}
}