refactor: renamed multiply to product
This commit is contained in:
@@ -5,7 +5,7 @@ public class ReportGenerator {
|
||||
Calculator calc = new BasicCalculator();
|
||||
int sum = calc.add(x, y);
|
||||
int diff = calc.subtract(x, y);
|
||||
int product = calc.multiply(x, y);
|
||||
int product = calc.product(x, y);
|
||||
int max = MathHelper.max(x, y);
|
||||
System.out.println("Sum: " + sum + ", Diff: " + diff +
|
||||
", Product: " + product + ", Max: " + max);
|
||||
|
||||
Reference in New Issue
Block a user