Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit 11124a7

Browse files
committed
Add a link to new exercises
1 parent 0db2824 commit 11124a7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: stream-api/README.MD

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This is the tutorial on Stream API and functional programming techniques
55
You'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)

Diff for: stream-api/src/main/java/com/bobocode/StreamReducing.java

+1-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)