Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created October 27, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s1monw1/fd793a140cad4b9b03ce3dde247f780a to your computer and use it in GitHub Desktop.
Save s1monw1/fd793a140cad4b9b03ce3dde247f780a to your computer and use it in GitHub Desktop.
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