Тёмный

Java 8 Streams | map () & flatMap() Example | JavaTechie 

Java Techie
Подписаться 165 тыс.
Просмотров 200 тыс.
50% 1

This tutorial will guide you How & when to use map() and faltMap() method in java8 stream
#javatechie #java8 #Stream
GitHub:
github.com/Java-Techie-jt/java8
Blogs:
/ javatechie
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account

Наука

Опубликовано:

 

16 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 226   
@samarthurs8000
@samarthurs8000 3 года назад
Thanks for making it look so simple. Key take away: If the parameter in the stream returns a Scalar(eg: customer.getEmail() single email id) then use Map. If the parameter returns a Vector(eg: customer.getPhoneNumbers(), customer.getProductsOrdered() which returns a list) then use FlatMap. Stream of Stream for FlatMap is one more key point to note...
@dineshkumar-lf2vk
@dineshkumar-lf2vk 2 года назад
I watched multiple videos on this topic. But you are really very nice in explaining the things deeply with clear and right example. Thanks brother
@girmahagos8540
@girmahagos8540 2 года назад
SIMPLY and PPRECISLY explained!! Big Love for your Time, Effort and Diligences!!
@KrishnaDhakate
@KrishnaDhakate 3 года назад
Thanks, man, your explanation is short and sweet without wasting time.
@nishantkumar3516
@nishantkumar3516 Год назад
I was unable to understand flatMap() until this video. Thank you so much Sir, your videos truly helps.
@salmanbaig7746
@salmanbaig7746 3 года назад
Excellent explanation in a very systematic way with good clear example.. Thank you
@fc6827
@fc6827 2 года назад
This is a great tutorial, and it really helped clarify things for me! One minor issue: I'm pretty sure the term is "Data Flattening" not "Data Flattering" (though to be fair, data is not complemented nearly enough!)
@abhinavmishra9690
@abhinavmishra9690 Год назад
All doubts got cleared for differences between map and flatMap operations of stream API. Thanks
@lulu6032
@lulu6032 Год назад
You do it very well! Great explainations!! After this, all I understood is that decreasing object levels with flatmap to one level, gives a map!
@vishwnathmpatil
@vishwnathmpatil 2 года назад
Great, simple and easy explaining the stream👍🏾
@arjumansheikh5640
@arjumansheikh5640 Год назад
For the first time i clearly understood flatmap(). Thanks a lot.
@mohammadshahruk8017
@mohammadshahruk8017 3 года назад
Every weekend I like to watch ur new videos keep posting
@vaijnathmagar
@vaijnathmagar 8 дней назад
Very good explanation 😊
@srinin4600
@srinin4600 Год назад
Please rename the word "flattering" to "flattening" . "Flattering" means to praise a lot,- lot of thumbs up for this video is flattering. Flattening is to reduce dimensions that flatMap does. Thanks
@Javatechie
@Javatechie Год назад
Yes buddy typo
@subhrajitsatpathy3545
@subhrajitsatpathy3545 2 года назад
One of the best youtube channel I have come across. Love your explanations.
@rishiraj2548
@rishiraj2548 Год назад
The code example is quite comprehensive and useful. Great thanks!
@kundankumar-sn3fz
@kundankumar-sn3fz 3 года назад
I have seen lots of videos but didn't understand but after see your video I understand very well thanks bro and God bless you 🙏
@maksymmelnyk8071
@maksymmelnyk8071 3 года назад
Thanks a lot! 15 minutes and I got it very clear.
@neeraj91mathur
@neeraj91mathur Год назад
Very clearly explained, this is what I was looking for. Thanks 👍
@9851573327
@9851573327 3 года назад
Great video. Hope to see all other Java8 related videos soon. 🙃😊
@VijayKumar-ie9xd
@VijayKumar-ie9xd Год назад
Provided knowledge with simple example.
@niranjan9069
@niranjan9069 3 года назад
Thanks bro, today I clearly understood when to use these concepts😊👍
@gaurrahul619
@gaurrahul619 2 месяца назад
straight forward stunning explanation got concept easily.
@Rithus2020
@Rithus2020 3 года назад
Thanks for the wonderful Explanation! Clear shot
@sramkrishna4004
@sramkrishna4004 10 месяцев назад
i love this good example to illustrate the difference b/w map and flatmap() keep it up bro
@sameer838
@sameer838 Год назад
Sir ur explanation is very simple and understanding every time.. Please keep doing it 🙏👏👏
@nateivecode
@nateivecode Год назад
There's already SO many comments like this on this video, but I have to commend your ability to simply and clearly explain the topic. Showing an example that can implement both methods and even using the map on something you wanted to flatMap() to illustrate the need for the flatMap() method--such a good illustration. Sure you said flattering instead of flattening but that is such a miniscule detail. Your comments in your code were fantastic too as it made your verbal explanations even more clear. Much appreciated for this content, you just got a new subscriber!
@Javatechie
@Javatechie Год назад
Thanks buddy for the sweet word 👌
@sagardarade
@sagardarade Год назад
Simple & Precise.. keep it up
@divinity5250
@divinity5250 Год назад
Awesome+Simple explanation!! Thanks a ton ❤️
@sagarsri4143
@sagarsri4143 3 года назад
Superb 👌 explanation ✌️
@tejaskhandare9270
@tejaskhandare9270 2 года назад
So concise and too the point.... Thanks a lot
@awadhtripathi674
@awadhtripathi674 3 года назад
Really awesome 👍 please create more videos on java 8. Such real time experience.
@sonicserenity9498
@sonicserenity9498 2 года назад
Thank you, sir - really good that you provide code for reference ...
@lpnjp
@lpnjp Год назад
Excellent, finally understood. Thanks a TON.
@palashkhatri7820
@palashkhatri7820 2 года назад
Thank you , Its was really crystal clear explanation .
@e.ch.vidyasagarkorada8937
@e.ch.vidyasagarkorada8937 3 года назад
Thank you java tech guru, helping lot to understand the key concepts Jai hind
@sproutboot
@sproutboot 2 года назад
Good. I read so many times flatMap is map+flattering, but didnt really understand what flattering is. Thanks
@PavanKumar-yj8fu
@PavanKumar-yj8fu 2 года назад
Very good information, thank you very much
@TusharParekhtpar2014
@TusharParekhtpar2014 2 года назад
very nicely explained . Great work !!
@phanimc11211
@phanimc11211 Год назад
Thanks for making it look so simple.
@sameerpatere2983
@sameerpatere2983 3 года назад
Superb tutorial
@manideepkumar959
@manideepkumar959 2 года назад
Thanks u told in very simpler way easily understood 😀
@channabasavav1823
@channabasavav1823 2 года назад
Thanks Java Techie 🙏🙏
@denosingh
@denosingh 2 года назад
Helpful, thanks for the video.
@pratishrutipanda6461
@pratishrutipanda6461 3 года назад
Awesome video sir ji
@dineshraj9488
@dineshraj9488 Год назад
Thanks for your wonderful explanation!!
@prakrutijani4205
@prakrutijani4205 2 месяца назад
What an explanation sir .. hats off
@jagadeesht1763
@jagadeesht1763 3 года назад
Great tutorial bro...👌👌👍👍 Keep posting new tutorial ...😀😀😀😀
@testuser51463
@testuser51463 2 года назад
Nice and short explanation to the point
@rahulpant7795
@rahulpant7795 2 года назад
beautiful explanation. thankyou.
@aarthis6216
@aarthis6216 2 года назад
Excellent explanation 🔥🔥
@karamjitsinghsehdev3451
@karamjitsinghsehdev3451 Год назад
Nice Explanation.
@itsmainakmukherjee
@itsmainakmukherjee 2 года назад
You have got a new subscriber. That's all I can say. Great learning for me. 😊👍
@jitendrapatil3276
@jitendrapatil3276 11 месяцев назад
Thanks for the video. One to One and One to Many explanation was really really great.
@sharmarahul17
@sharmarahul17 11 месяцев назад
Excellent explanation 👌
@venkatasivamajjari5977
@venkatasivamajjari5977 3 года назад
Nice explanation
@mohammedshabbir1347
@mohammedshabbir1347 2 года назад
Thanks for the nice explanation.
@sambhavjain6957
@sambhavjain6957 Год назад
Thanks for clearing the point
@nausheenkhan5896
@nausheenkhan5896 2 года назад
Amazing video: Few Highlights : 1. Use map function when we can map one-to-one mapping, whereas flatmap is used for one to many mapping. 2. map provides mapping for single input, single value whereas flatmap provides mapping single input multiple values 3. flat map performs data transformation+flattening(flattening is the process of converting multiple lists of lists in stream to a single list by merging the values)
@aeroabrar_31
@aeroabrar_31 8 месяцев назад
No, it follow many-to-one mapping. It converts many collections one single stream
@ANKITCHOUDHARYankitkrchy
@ANKITCHOUDHARYankitkrchy 2 года назад
Commendable job
@ashishgirolkar47
@ashishgirolkar47 Год назад
GREAT EXPLAINATION ....Thanks SIR
@sepgh2216
@sepgh2216 Год назад
Great job. One note, for those of use that our OCD kicks in easily it will not be easy to watch the code comments being 2 tabs behind the rest of the code (6:32)
@navnitkumar7234
@navnitkumar7234 2 года назад
very good explanation. I understood at one time
@shaikshafa1048
@shaikshafa1048 Год назад
Thanks sir...this topic is very helpful for interview purpose
@pushpal.r.1096
@pushpal.r.1096 2 года назад
Thank you Sir. Nicely explained.
@jskr456
@jskr456 3 года назад
good one basant, wishing you more success with the channel
@kesavuluc9802
@kesavuluc9802 3 года назад
You are my favorite techie bro!
@javamaster4069
@javamaster4069 Год назад
Good concept.
@azharmobeen
@azharmobeen 2 года назад
Very well explained thanks 👍👍
@petroniobonavides3530
@petroniobonavides3530 Год назад
This si the real TeachingTalent Instructor
@shivamkhandelwal9041
@shivamkhandelwal9041 3 года назад
Great explanation!
@MohammedAli-mc9xv
@MohammedAli-mc9xv Год назад
Thank you sir. Very informative.
@rajeebpati9912
@rajeebpati9912 2 года назад
Well explained. Thank u so much
@pitchireddyb646
@pitchireddyb646 3 года назад
Very clear explanation
@hkmehandiratta
@hkmehandiratta Год назад
Thanks a lot for your efforts and putting this video.
@omprakashgupta2371
@omprakashgupta2371 10 месяцев назад
Nice video
@sreddy8141
@sreddy8141 2 года назад
Awesome 🙂
@jpssasadara3624
@jpssasadara3624 Год назад
A clear explanation
@deeproy2719
@deeproy2719 2 года назад
thanks basant short and crisp!
@kandilakshmiprasana9776
@kandilakshmiprasana9776 3 года назад
Way of explanation is very good
@prabhuldasds3518
@prabhuldasds3518 2 года назад
Good tutorial. Thank you.
@venkatasubbareddy.g2283
@venkatasubbareddy.g2283 3 года назад
U r great bro, 👍
@rishikesharora8681
@rishikesharora8681 3 года назад
Excellent explanation bro.....
@ranjandas6046
@ranjandas6046 3 года назад
Always learning new concepts from here. Thank you. I am expecting an example of large project consist of multiple modules and one for authentication and authorisation.
@Javatechie
@Javatechie 3 года назад
Thanks Ranjan , Please checkout my microservice playlist
@VivekYadav-jq6fv
@VivekYadav-jq6fv 2 года назад
How come I missed so useful channel.
@waytolivelife
@waytolivelife 6 месяцев назад
bhai best tutorial i have ever seen...love you.
@Atul_Shegokar
@Atul_Shegokar 2 года назад
hi sir, hats of to you..... Thank you very much. very nice explanation. I read multiple article about map Vs flatMap, I could not understand but after watching your video I am very clear now. I can answer to interviewer very comfortably after watching this video.
@Javatechie
@Javatechie 2 года назад
Awesome thanks Atul
@aminesafi7261
@aminesafi7261 3 года назад
Nice explanation!
@sathishkumarr7106
@sathishkumarr7106 3 года назад
Good video 👍🏻
@kedarnathanubolu2295
@kedarnathanubolu2295 Год назад
Simple and clear explanation thank you
@kedarnathanubolu2295
@kedarnathanubolu2295 Год назад
Am exciting all the 1.8 features in a single video plz this will help us a lot
@Javatechie
@Javatechie Год назад
Hi buddy it's already there please follow this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ePJrt5-G8eM.html
@atifansari6424
@atifansari6424 3 года назад
Thank you sir, You are Awsommmmmmmmm....
@shivamtyagi5486
@shivamtyagi5486 2 года назад
Well explained!! Very nice video!!!!!
@ajayantony4412
@ajayantony4412 3 года назад
Thanks..expecting more tutorials on java 8 + features. I would really appreciate if you would take a competitive programming challenge and show us how to use java 8 + features to solve it.
@Javatechie
@Javatechie 3 года назад
Sure we will do .
@mohammadikram687
@mohammadikram687 2 года назад
It would be really interesting to leverage Java 8 to solve cp questions.
@ashishsahu1310
@ashishsahu1310 2 года назад
Crystal clear explanation. Thanks for such a nice content.
@Javatechie
@Javatechie 2 года назад
Thanks buddy 😊
@suspicious_abies
@suspicious_abies Год назад
Very clear explanation 🔥👌🏻
@rajendralella6956
@rajendralella6956 3 года назад
Excellent!! bro
@ravindusamaranayake3278
@ravindusamaranayake3278 2 года назад
Nice explanation. thanks!
@bacchaparty6275
@bacchaparty6275 3 года назад
Thanks for this
@solbonka
@solbonka Год назад
good explanation! Thank you!
@TheMksShow
@TheMksShow 3 года назад
Super
Далее
That One Racoon Be Like:
00:12
Просмотров 2,8 млн
Рено ЛОГАН 20го века обзор🔥
00:22
Java 8 Stream API  : Streams Filter & Map Operations
15:35
Это СКЛАДНОЙ iPhone из 2026🤯
0:35
Просмотров 14 тыс.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Просмотров 1,7 млн