diff --git a/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java b/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java index c6e6ea140..fac9e15c3 100644 --- a/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java +++ b/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java @@ -8,11 +8,11 @@ public int bonusMultiplier(int productsSold) { return productsSold < 20 ? 10 : 13; } - public double bonusForProductsSold (int productsSold) { + public double bonusForProductsSold(int productsSold) { return productsSold * bonusMultiplier(productsSold); } - public double finalSalary (int daysSkipped, int productsSold) { + public double finalSalary(int daysSkipped, int productsSold) { double finalSalary = 1000.0 * salaryMultiplier(daysSkipped) + bonusForProductsSold(productsSold); return finalSalary > 2000.0 ? 2000.0 : finalSalary; }