I would like to get the max value out of a list using java 8 stream methods.
The structure is the following:
Because forEach is a terminal operation. And after you call the forEach on a stream the stream terminates and can't be used again.
forEach