diff --git a/src/main/java/com/h2/SavingsCalculator.java b/src/main/java/com/h2/SavingsCalculator.java index 069060f11..55cb6d1f7 100644 --- a/src/main/java/com/h2/SavingsCalculator.java +++ b/src/main/java/com/h2/SavingsCalculator.java @@ -55,5 +55,9 @@ public static void main(String[] args) { for (int i = 0; i < debitsAsString.length; i++) { debits[i] = Float.parseFloat(debitsAsString[i]); } + + SavingsCalculator c = new SavingsCalculator(credits, debits); + float netSavings = c.calculate(); + System.out.println("Net Savings = " + netSavings + ", remaining days in month = " + remainingDaysInMonth(LocalDate.now())); } }