In this video, I have explained what is flatMap() and what's the use of this on Stream objects.
In Java 8, Stream can hold different data types, for examples:
Stream of String[]
Stream of Set of String
Stream of List of String
Stream of List of Object
But, the Stream operations (filter, sum, distinct…) and collectors do not support it, so, we need flatMap() to do the Stream conversion.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzitem.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
naveenautomationlabs.com/reco...
For Java & Selenium - naveenautomationlabs.com/selen...
For API (Manual + Automation) - naveenautomationlabs.com/manua...
Негізгі бет Ғылым және технология Java 8 - Streams with FlatMap
Пікірлер: 10