Plethora of different operations available with streams. Some basic and very important operations are already been discussed in previous article (read it from here). Let’s see how collect, flatMap and reduce operations works. How to use Collect operation in streams? Collect is used to transform the elements of the stream into a different data structures