This repository was archived by the owner on Feb 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/main/java/com/bobocode Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ This is the tutorial on Stream API and functional programming techniques
55You're supposed to be familiar with OOP, have basic knowledge of JDK, and be able to write Java code.
66### Related exercises :muscle :
77* [ Account analytics] ( https://github.com/bobocode-projects/java-functional-features-exercises/tree/master/account-analytics )
8+ * [ File Reader] ( https://github.com/bobocode-projects/java-core-exercises/tree/master/file-reader )
9+ * [ File Stats] ( https://github.com/bobocode-projects/java-core-exercises/tree/master/file-stats )
810### See also :point_down :
911* [ Tutorial on Lambdas] ( https://github.com/bobocode-projects/java-functional-features-tutorial/tree/master/lambdas )
1012* [ Tutorial on Optional] ( https://github.com/bobocode-projects/java-functional-features-tutorial/tree/master/optional )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static void main(String[] args) {
2222 private static void printTotalBalance (List <Account > accounts ) {
2323 BigDecimal totalAmount = accounts .stream ()
2424 .map (Account ::getBalance )
25- .reduce (BigDecimal .ONE , BigDecimal ::add );
25+ .reduce (BigDecimal .ZERO , BigDecimal ::add );
2626
2727 System .out .println ("Total balance is $" + totalAmount );
2828 }
You can’t perform that action at this time.
0 commit comments