Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created May 31, 2019 09:09
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 jasongorman/601f36f5b6bac3811670e217326d4fee to your computer and use it in GitHub Desktop.
Save jasongorman/601f36f5b6bac3811670e217326d4fee to your computer and use it in GitHub Desktop.
double total() {
double total = basket.stream()
.mapToDouble(i -> i.subtotal())
.sum();
return total;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment