Skip to content

Commit

Permalink
done module3
Browse files Browse the repository at this point in the history
  • Loading branch information
snychka committed May 20, 2020
1 parent c8f2f16 commit 9370064
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/h2/SavingsCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}

0 comments on commit 9370064

Please sign in to comment.