JAVA 8 Features
JAVA 8 Features
Functional Interfaces
• forEach()
-helps in iterating over all elements of a stream and perform some
operation on each of them.
• collect()
- used to receive elements from a steam and store them in a collection
• count()
-used to returning number of elements in a stream as long value.