reports
This commit is contained in:
parent
a2317af4cc
commit
8f92046359
BIN
reports/Отчёт 1.docx
Normal file
BIN
reports/Отчёт 1.docx
Normal file
Binary file not shown.
BIN
reports/Отчёт 2.docx
Normal file
BIN
reports/Отчёт 2.docx
Normal file
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user