Java 8 - Streams with FlatMap

preview_player
Показать описание
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:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
Рекомендации по теме
Комментарии
Автор

Watched it the second time. And, it's become super clear to me. Great job Naveen.

parthapramanik
Автор

Its really awesome to learn form you always 👍😊

SarangHoley
Автор

Thanks for the explanation in minimalistic Great Work!!

raghugunda
Автор

Hi..i didnt understanding only this chapter..But before 5 chapters i understand easily. Any link where i can study same

manaliangel
Автор

Thanks for the awesome video Naveen . It helped me a lot but only one question if we want to see how many duplicate names are there and what are there how can we findout can u plz let me know . Thanks in advance

Tvs
Автор

I didn't understand Arrays.stream() Ye to sir k upper s gya Sir ji ! What is intermediate operation. These operations are always lazy. ???? What Lazy??

jatinsharma
Автор

Let's say I have an list of of objects and each object has name and list of IDs. I want to group each object based on the ID. How to use flatmap for this

Input: Object {"xyz", [1, 2]}
Output: Object{"xyz", 1},
Object{"xyz", 2}

mounikareddappa