Skip to content

Instantly share code, notes, and snippets.

@aruld
Last active December 13, 2015 18:58
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 aruld/4959115 to your computer and use it in GitHub Desktop.
Save aruld/4959115 to your computer and use it in GitHub Desktop.
students.parallelStream().forEach(student -> {
student.GradePointAverage = student.Tests.parallelStream().mapToDouble(test -> test.Grade * test.Weight).sum();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment