This repository was archived by the owner on Feb 10, 2021. It is now read-only.
File tree 2 files changed +3
-1
lines changed
src/main/java/com/bobocode
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
5
5
You're supposed to be familiar with OOP, have basic knowledge of JDK, and be able to write Java code.
6
6
### Related exercises :muscle :
7
7
* [ 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 )
8
10
### See also :point_down :
9
11
* [ Tutorial on Lambdas] ( https://github.com/bobocode-projects/java-functional-features-tutorial/tree/master/lambdas )
10
12
* [ 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) {
22
22
private static void printTotalBalance (List <Account > accounts ) {
23
23
BigDecimal totalAmount = accounts .stream ()
24
24
.map (Account ::getBalance )
25
- .reduce (BigDecimal .ONE , BigDecimal ::add );
25
+ .reduce (BigDecimal .ZERO , BigDecimal ::add );
26
26
27
27
System .out .println ("Total balance is $" + totalAmount );
28
28
}
You can’t perform that action at this time.
0 commit comments