How can I accumulate inside a forEach? this is my code:
public Double accumulate() { Double accum = 0d; numbers.stream().forEach(p-> {