What is the purpose of forEach method of stream in Java 8?
Stream has provided a new method 'forEach' to iterate each element of the stream.