From 9370064ac0fe1260ab29a2c8244ef914c7ce3cc3 Mon Sep 17 00:00:00 2001 From: snychka Date: Wed, 20 May 2020 17:35:01 -0600 Subject: [PATCH] done module3 --- src/main/java/com/h2/SavingsCalculator.java | 4 ++++ 1 file changed, 4 insertions(+) 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())); } }