Created
September 2, 2022 21:59
-
-
Save s1monw1/7de623c78d4dab7e359a59a3046c7091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int total = employees | |
.stream() | |
.collect(Collectors.summingInt(Employee::getSalary))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment