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

  Рет қаралды 206,624

Java Techie

Java Techie

3 жыл бұрын

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

Пікірлер: 232
@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...
@KrishnaDhakate
@KrishnaDhakate 3 жыл бұрын
Thanks, man, your explanation is short and sweet without wasting time.
@nishantkumar3516
@nishantkumar3516 2 жыл бұрын
I was unable to understand flatMap() until this video. Thank you so much Sir, your videos truly helps.
@dineshkumar-lf2vk
@dineshkumar-lf2vk 3 жыл бұрын
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
@vik6330
@vik6330 21 күн бұрын
Awesome explanation sir, Great❤
@girmahagos8540
@girmahagos8540 2 жыл бұрын
SIMPLY and PPRECISLY explained!! Big Love for your Time, Effort and Diligences!!
@arjumansheikh5640
@arjumansheikh5640 2 жыл бұрын
For the first time i clearly understood flatmap(). Thanks a lot.
@nitinjirawal
@nitinjirawal 17 күн бұрын
everywhere people have complex definition. this one not only explained well but with a good example too.
@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
@maksymmelnyk8071
@maksymmelnyk8071 3 жыл бұрын
Thanks a lot! 15 minutes and I got it very clear.
@salmanbaig7746
@salmanbaig7746 3 жыл бұрын
Excellent explanation in a very systematic way with good clear example.. Thank you
@mohammadshahruk8017
@mohammadshahruk8017 3 жыл бұрын
Every weekend I like to watch ur new videos keep posting
@omprakashgupta2371
@omprakashgupta2371 Жыл бұрын
Nice video
@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!
@niranjan9069
@niranjan9069 3 жыл бұрын
Thanks bro, today I clearly understood when to use these concepts😊👍
@vishwnathmpatil
@vishwnathmpatil 2 жыл бұрын
Great, simple and easy explaining the stream👍🏾
@rishiraj2548
@rishiraj2548 Жыл бұрын
The code example is quite comprehensive and useful. Great thanks!
@VijayKumar-ie9xd
@VijayKumar-ie9xd Жыл бұрын
Provided knowledge with simple example.
@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 🙏
@subhrajitsatpathy3545
@subhrajitsatpathy3545 3 жыл бұрын
One of the best youtube channel I have come across. Love your explanations.
@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 👌
@neeraj91mathur
@neeraj91mathur 2 жыл бұрын
Very clearly explained, this is what I was looking for. Thanks 👍
@Rithus2020
@Rithus2020 3 жыл бұрын
Thanks for the wonderful Explanation! Clear shot
@gaurrahul619
@gaurrahul619 4 ай бұрын
straight forward stunning explanation got concept easily.
@davidl6797
@davidl6797 25 күн бұрын
What a clear and practical explanation, thank u sir!
@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 9 ай бұрын
No, it follow many-to-one mapping. It converts many collections one single stream
@lpnjp
@lpnjp 2 жыл бұрын
Excellent, finally understood. Thanks a TON.
@divinity5250
@divinity5250 Жыл бұрын
Awesome+Simple explanation!! Thanks a ton ❤️
@sambhavjain6957
@sambhavjain6957 Жыл бұрын
Thanks for clearing the point
@9851573327
@9851573327 3 жыл бұрын
Great video. Hope to see all other Java8 related videos soon. 🙃😊
@jpssasadara3624
@jpssasadara3624 Жыл бұрын
A clear explanation
@sonicserenity9498
@sonicserenity9498 2 жыл бұрын
Thank you, sir - really good that you provide code for reference ...
@e.ch.vidyasagarkorada8937
@e.ch.vidyasagarkorada8937 3 жыл бұрын
Thank you java tech guru, helping lot to understand the key concepts Jai hind
@sagardarade
@sagardarade Жыл бұрын
Simple & Precise.. keep it up
@sameer838
@sameer838 Жыл бұрын
Sir ur explanation is very simple and understanding every time.. Please keep doing it 🙏👏👏
@palashkhatri7820
@palashkhatri7820 2 жыл бұрын
Thank you , Its was really crystal clear explanation .
@petroniobonavides3530
@petroniobonavides3530 Жыл бұрын
This si the real TeachingTalent Instructor
@tejaskhandare9270
@tejaskhandare9270 2 жыл бұрын
So concise and too the point.... Thanks a lot
@felipedossantos7246
@felipedossantos7246 2 жыл бұрын
Great content, pal!!!
@sagarsri4143
@sagarsri4143 3 жыл бұрын
Superb 👌 explanation ✌️
@sramkrishna4004
@sramkrishna4004 Жыл бұрын
i love this good example to illustrate the difference b/w map and flatmap() keep it up bro
@manideepkumar959
@manideepkumar959 2 жыл бұрын
Thanks u told in very simpler way easily understood 😀
@dineshraj9488
@dineshraj9488 Жыл бұрын
Thanks for your wonderful explanation!!
@PavanKumar-yj8fu
@PavanKumar-yj8fu 2 жыл бұрын
Very good information, thank you very much
@phanimc11211
@phanimc11211 Жыл бұрын
Thanks for making it look so simple.
@prakrutijani4205
@prakrutijani4205 4 ай бұрын
What an explanation sir .. hats off
@ashishgirolkar47
@ashishgirolkar47 Жыл бұрын
GREAT EXPLAINATION ....Thanks SIR
@sproutboot
@sproutboot 2 жыл бұрын
Good. I read so many times flatMap is map+flattering, but didnt really understand what flattering is. Thanks
@testuser51463
@testuser51463 2 жыл бұрын
Nice and short explanation to the point
@awadhtripathi674
@awadhtripathi674 3 жыл бұрын
Really awesome 👍 please create more videos on java 8. Such real time experience.
@varindersinghrehal5282
@varindersinghrehal5282 2 жыл бұрын
Thank you so much. Best way to explain properly. Jai hind Ji
@denosingh
@denosingh 2 жыл бұрын
Helpful, thanks for the video.
@ANKITCHOUDHARYankitkrchy
@ANKITCHOUDHARYankitkrchy 2 жыл бұрын
Commendable job
@shaikshafa1048
@shaikshafa1048 Жыл бұрын
Thanks sir...this topic is very helpful for interview purpose
@TusharParekhtpar2014
@TusharParekhtpar2014 2 жыл бұрын
very nicely explained . Great work !!
@sameerpatere2983
@sameerpatere2983 3 жыл бұрын
Superb tutorial
@pratishrutipanda6461
@pratishrutipanda6461 3 жыл бұрын
Awesome video sir ji
@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
@navnitkumar7234
@navnitkumar7234 3 жыл бұрын
very good explanation. I understood at one time
@car_holic1995
@car_holic1995 7 ай бұрын
bhai best tutorial i have ever seen...love you.
@ashishsahu1310
@ashishsahu1310 2 жыл бұрын
Crystal clear explanation. Thanks for such a nice content.
@Javatechie
@Javatechie 2 жыл бұрын
Thanks buddy 😊
@vaijnathmagar
@vaijnathmagar Ай бұрын
Very good explanation 😊
@solbonka
@solbonka Жыл бұрын
good explanation! Thank you!
@kandilakshmiprasana9776
@kandilakshmiprasana9776 3 жыл бұрын
Way of explanation is very good
@sharmarahul17
@sharmarahul17 Жыл бұрын
Excellent explanation 👌
@pushpal.r.1096
@pushpal.r.1096 2 жыл бұрын
Thank you Sir. Nicely explained.
@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
@sreddy8141
@sreddy8141 3 жыл бұрын
Awesome 🙂
@monojkarar1837
@monojkarar1837 3 жыл бұрын
Very nice explanation
@azharmobeen
@azharmobeen 2 жыл бұрын
Very well explained thanks 👍👍
@rahulpant7795
@rahulpant7795 2 жыл бұрын
beautiful explanation. thankyou.
@jagadeesht1763
@jagadeesht1763 3 жыл бұрын
Great tutorial bro...👌👌👍👍 Keep posting new tutorial ...😀😀😀😀
@itsmainakmukherjee
@itsmainakmukherjee 2 жыл бұрын
You have got a new subscriber. That's all I can say. Great learning for me. 😊👍
@aarthis6216
@aarthis6216 2 жыл бұрын
Excellent explanation 🔥🔥
@javamaster4069
@javamaster4069 Жыл бұрын
Good concept.
@hkmehandiratta
@hkmehandiratta Жыл бұрын
Thanks a lot for your efforts and putting this video.
@jitendrapatil3276
@jitendrapatil3276 Жыл бұрын
Thanks for the video. One to One and One to Many explanation was really really great.
@MohammedAli-mc9xv
@MohammedAli-mc9xv Жыл бұрын
Thank you sir. Very informative.
@krishsuripaka1056
@krishsuripaka1056 2 жыл бұрын
Bayya ...Extraordinary Explanation. I don't have words...
@Javatechie
@Javatechie 2 жыл бұрын
Thanks Krish 😊
@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.
@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)
@computeranalyst5737
@computeranalyst5737 3 жыл бұрын
Great Video !!
@mohammedshabbir1347
@mohammedshabbir1347 2 жыл бұрын
Thanks for the nice explanation.
@VivekYadav-jq6fv
@VivekYadav-jq6fv 2 жыл бұрын
How come I missed so useful channel.
@jskr456
@jskr456 3 жыл бұрын
good one basant, wishing you more success with the channel
@venkatasubbareddy.g2283
@venkatasubbareddy.g2283 3 жыл бұрын
U r great bro, 👍
@jeevi639
@jeevi639 3 жыл бұрын
Great explanation!
@suspicious_abies
@suspicious_abies Жыл бұрын
Very clear explanation 🔥👌🏻
@aminesafi7261
@aminesafi7261 3 жыл бұрын
Nice explanation!
@deeproy2719
@deeproy2719 2 жыл бұрын
thanks basant short and crisp!
@TheMksShow
@TheMksShow 3 жыл бұрын
Super
@rajeebpati9912
@rajeebpati9912 2 жыл бұрын
Well explained. Thank u so much
@kesavuluc9802
@kesavuluc9802 3 жыл бұрын
You are my favorite techie bro!
@pitchireddyb646
@pitchireddyb646 3 жыл бұрын
Very clear explanation
@rajendralella6956
@rajendralella6956 3 жыл бұрын
Excellent!! bro
@channabasavav1823
@channabasavav1823 2 жыл бұрын
Thanks Java Techie 🙏🙏
@prabhuldasds3518
@prabhuldasds3518 2 жыл бұрын
Good tutorial. Thank you.
@karamjitsinghsehdev3451
@karamjitsinghsehdev3451 Жыл бұрын
Nice Explanation.
@sathishkumarr7106
@sathishkumarr7106 3 жыл бұрын
Good video 👍🏻
Java 8 Streams | Optional Usage and Best Practices | JavaTechie
22:22
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 3,1 МЛН
Java 8 Streams | map() and reduce()  Example | JavaTechie
18:11
Java Techie
Рет қаралды 95 М.
Java 8 STREAMS Tutorial
18:10
Oggi AI - Artificial Intelligence Today
Рет қаралды 730 М.
Java Streams | FlatMap & Optional Example | Tech Primers
11:24
Tech Primers
Рет қаралды 48 М.
Java 8 Stream API | forEach & filter Method example | Java Techie
21:56
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 3,7 МЛН
Ждёшь обновление IOS 18? #ios #ios18 #айоэс #apple #iphone #айфон
0:57
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,7 МЛН