Тёмный

Java 8 STREAMS Tutorial 

Oggi AI - Artificial Intelligence Today
Подписаться 77 тыс.
Просмотров 723 тыс.
50% 1

Functional programming in Java: tutorial on how to use Java 8 Streams filter, map, sort, reduce and collect functions. Lambda functions explained through examples, with Java code.
=======CONTENTS=======
0:00 Intro to Streams
3:42 ex1: simple int stream
4:53 ex2: int stream, skip
5:40 ex3: int stream, sum
6:15 ex4: stream.of, sorted, findFirst
7:03 ex5: stream from array, sort, filter
7:57 ex6: map, average
8:50 ex7: stream from list, map, filter
10:00 ex8: stream from text file, sorted, filter, forEach
11:05 ex9: text file, filter, collect
12:04 ex10: stream from csv file, map, filter, count
13:43 ex11: csv, map, filter, forEach
14:51 ex12: csv, filter, collect to hashmap
15:52 ex13: int stream, reduce to sum
17:02 ex14: int stream, reduce to summaryStatistics
Twitter: / joejamesusa
Code on GitHub: github.com/joeyajames/Java/tr...
Subscribe: bit.ly/like-this-channel
Thank me on Patreon: / joeyajames
#java
@DaretoExplore

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

 

25 апр 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 539   
@iOnlySay
@iOnlySay 2 года назад
3:46 IntStream, Range, forEach, Print 4:55 skip 5:43 sum 6:25 steam.of , sorted, findFirst, ifPresent 7:05 stream of Array, sort, filter 8:00 average, map, ifPresent 8:56 Stream from List, map, filter, foreach, print 10:02 Streams from Text file, sort, filter, print, close 11:08 Streams from Text file, filter, collect 12:07 Stream from CSV file, map, filter, count 13:46 CSV, map, filter 15:56 reduce 17:03 summaryStatistics
@The8merp
@The8merp 2 года назад
Hey Joe, if you copy paste these timestamps in the video description RU-vid will auto add sections to the video, could be helpful
@gerdsfargen6687
@gerdsfargen6687 Год назад
Easily one of, if not THE best tutorial on Streams for Java 8. I still come back to this when I've not coded in a while after a hiatus. It's so good! Was confounded by the range of Streams functions when starting out in Java 8. Im absolutely zooming through them now and much more confident to create my own. Thank you so much, Joe!
@atrantech11
@atrantech11 Месяц назад
This was infinitely helpful. I love how you gave so many examples. Thus, allowing me to understand and play around with these examples. Best stream tutorial and will come back to it later as refreshers.
@pascalgu6771
@pascalgu6771 5 лет назад
This is actually better than some of the paid courses on pluralsight. Keep up the execelent work!!
@kevinjad4506
@kevinjad4506 3 года назад
No pluralsight(s) were harmed in this comment
@seniorhackersgaming8062
@seniorhackersgaming8062 2 года назад
yes
@rishabhjain8319
@rishabhjain8319 Год назад
I was taking course there and jump back here :P
@sanjeevkumar-fk3fn
@sanjeevkumar-fk3fn Год назад
@@kevinjad4506 77777777777777777777777777777777777777777777777777777777777777777777777?7777777777777?7777777777777777777777777777777!(
@gerdsfargen6687
@gerdsfargen6687 Год назад
Spot on. This video...the instructor...excellent.
@avinpaladugu
@avinpaladugu 5 лет назад
Fantastic. Crystal clear and no nonsense class.
@Nothoughtinvolved
@Nothoughtinvolved 5 лет назад
Only time I've seen Java 8 streams explained clearly online. Thank you Joe
@siphesihlesithungu2356
@siphesihlesithungu2356 4 года назад
Simple. Easy to follow. Straight to the point. Basically the most descriptive video I have seen so far on Java streams. Thank you so much.
@punyabrotad
@punyabrotad 5 лет назад
excellent tutorial...exactly what is needed for java developers upgrading to functional programming.
@tobyzhan7729
@tobyzhan7729 5 лет назад
Simple, rich and elegant. Love this tutorial!
@diodorsaydofmi3504
@diodorsaydofmi3504 3 года назад
I'm a simple man I see Arijit's name (12:00), My day is made ☺
@skyFullOfStars
@skyFullOfStars 3 года назад
I wonder how Joe knows Arijit Singh! 🤔
@apfelll
@apfelll 5 лет назад
Thank you for the very good tutorial. It's well explained and straight forward, exactly what I was looking for!
@luiscortes6563
@luiscortes6563 6 лет назад
Great video! Loving streams already!
@810612381
@810612381 5 лет назад
Intensive and clear, great value for each minute watched on this video
@grzesieknowosad1568
@grzesieknowosad1568 6 лет назад
Hey. I would like to emphasize that this tutorial for Java 8 streams is really great. I've been looking through internet for some good explanation. Found many sites or tutorials, but this one is best quality step-by-step. I found everything that I needed from the beginning. Thanks
@rkulk
@rkulk 2 года назад
Excellent work Joe, thank you for explaining this with easy to understand examples.
@netindu
@netindu 3 года назад
A one-stop place for Streams. Excellent video. Great Job Joe !
@Pontification
@Pontification Год назад
This is one of the most useful techniques in Java Ive ever seen.
@ensoniq2k
@ensoniq2k 4 года назад
This is such a mind blowing feature, thank you very much for explaining in such detail!
@chrisbessant3315
@chrisbessant3315 3 года назад
A great video - small and simple examples that get the message across clearly. Thank you.
@nabinrai749
@nabinrai749 4 года назад
this type of tutorial covers more topics and condition than others typing n explaining the course
@prathyusha252
@prathyusha252 4 года назад
Wonderful explanation Joe. Thanks for the tutorial!
@user-qz8cu3li4z
@user-qz8cu3li4z 3 года назад
This is the best video to explain Java collection I've seen in RU-vid. Thank you!
@anjalisajeev
@anjalisajeev 3 года назад
I have watched several videos on this, and this was the best! Helped me understand the concept.
@suriyaprakhash
@suriyaprakhash 5 лет назад
U nailed it. Short crisp and clear. Appreciate your work👍
@Ajinkya20061989
@Ajinkya20061989 5 лет назад
Great explanation. Really helped understanding the concepts. Thanks for sharing the knowledge!
@gongjiaji2489
@gongjiaji2489 5 лет назад
Thank you so much Joe, my lecturer can't explain this simple feature in 2 hours, you did it in 20mins. seriously You should teach in our uni.
@normdeplume6315
@normdeplume6315 4 года назад
sad but true. Great video
@mafakka2
@mafakka2 2 года назад
have you dropped from uni already?
@DerSpudi
@DerSpudi 5 лет назад
Awesome! I wasn't comfortable with streams before, but after this video I immediately changed three for loops of my program to streams. Looks so much nicer and is not so tedious to code. Thanks!
@teminoah2960
@teminoah2960 2 года назад
Exactly,same for me too, I also now enjoy using streams
@gerdsfargen6687
@gerdsfargen6687 Год назад
@@teminoah2960 They just cut down on so much bulk code and make Java more of a joy to work with!
@suseelkumarannamraju
@suseelkumarannamraju 2 года назад
I got a hands-on on streams a bit more than before. Thanks for making this video Joe.
@AnasMughal
@AnasMughal 3 года назад
Very concise and focused presentation. I appreciate that.
@sgtdutra
@sgtdutra 6 лет назад
Great great!!!! Excellent explanation... thank you very much. It was exactly what i need.
@pritampatil435
@pritampatil435 5 лет назад
Excellent. Best tutorial on java stream came across.
@eternalwanderer6057
@eternalwanderer6057 5 лет назад
Just commenting to say thanks, Joe. This was a VERY helpful tutorial. THANK YOU!
@erdoaNNN
@erdoaNNN 6 лет назад
Great video, Joe! Thanks for the efforts and continue shooting videos like this please.
@fc6827
@fc6827 2 года назад
This makes map very easy to understand. God all this time I thought it had something to do with hashmaps, KV pairs etc...this really helps, ty!
@javadmahdiyoun5552
@javadmahdiyoun5552 3 года назад
دمت گرم با این آموزش خوبت ، ایولا Thanks for this high quality teaching, keep going
@ashethebostonterrier4918
@ashethebostonterrier4918 4 года назад
Very good explanation including using stream, array, map, collectors and lambda. Thanks. I have learned a lot. Very short implementation, but got lots done. I never would have thought using map, filter like in JS in Java. You can see how long I haven’t touched the Java. I need to prepare for interviews in their future. This helped me. Always nice learning something new.
@khalidqureshi6359
@khalidqureshi6359 5 лет назад
Very informative with very clear and concise explanation.
@Somerandomnessvvv
@Somerandomnessvvv 3 года назад
Streams are saving a punch of blocks of code, this is really helpful. Great explanation.
@ashu47202
@ashu47202 5 лет назад
REALLY NICE EXAMPLES explaining various usage options of Streams API. Thank you !!!
@oldapolda3567
@oldapolda3567 2 года назад
The Best Explaination i have ever seen about java streams. Thank You So much.
@JobinJacobKavalam
@JobinJacobKavalam Год назад
Great presentation ... plain and simple ... that is what we want, almost always.
@dianadutka5764
@dianadutka5764 4 года назад
love how it was simply straight to the point!
@Romanov1309
@Romanov1309 5 лет назад
I haven't touched Java in a while and now it looks like magic to me. Your explanation though made it understandable, thank so much!
@richaarora1775
@richaarora1775 5 лет назад
Great explanation on Java Streams. Cleared the basic concepts of using Stream API.
@mustapharaimilawal8053
@mustapharaimilawal8053 2 месяца назад
Wow, this is so insightful, concise introduction to streams api. This is so easy to follow, thanks a lot sir.
@oggiai
@oggiai 29 дней назад
You are most welcome
@deepap2068
@deepap2068 5 лет назад
Your videos are awesome. Thanks Joe. Also, It would be great if you could group your videos into playlists like Java, Streams, machine learning paths, etc. It’s kind of difficult to get hold of the whole series.
@salmanbaig8088
@salmanbaig8088 3 года назад
Thank you so much. This is the best explanation I have seen so far with great examples.
@puneetkocher3370
@puneetkocher3370 4 года назад
Superb video, i have seen many videos but didn’t find any other video giving this much of examples
@Hufsa
@Hufsa 2 года назад
Really good tutorial, I have used streams but I wasn't sure of some concepts, now it's clear, thanks a lot!
@abail7010
@abail7010 4 года назад
Wow Java is actually much better when it comes to file handling than expected! Great video, thanks!!
@nimbostratue
@nimbostratue 5 лет назад
Thank you Joe for this excellent tutorial which is probably better than most of the ones out there.
@afifkhaja
@afifkhaja 2 года назад
Fantastic. Although it took my 40 min to write out, run, and understand the code, it was well worth it
@teminoah2960
@teminoah2960 2 года назад
Joe James is a great teacher and a great mentor,I must affirm . How I wish have known him in my early days of programming.
@redbridgesoftware6394
@redbridgesoftware6394 4 года назад
thank you, Joe this is an excellent tutorial
@sehajpreetsingh4177
@sehajpreetsingh4177 3 года назад
No nonsense explanation. Thank you very much.
@pslamba
@pslamba 2 года назад
Kudos for making your example data so culturally diverse!
@oggiai
@oggiai 2 года назад
I try to match my diverse viewers.
@JERILNADAR
@JERILNADAR 4 года назад
Super tutorial. Made me go from hating Streams to loving it.
@dev-skills
@dev-skills 3 года назад
Very good collection of Stream examples, Learning about Files and IntSummaryStatistics was a bonus.
@saravanant7283
@saravanant7283 5 лет назад
One of the best Java 8 content in youtube.
@oggiai
@oggiai 5 лет назад
Thanks. :-)
@AkimMoh
@AkimMoh 5 лет назад
THANK YOU I MISSED "x.contains()" NOW I KNOW HOW TO FILTER STRING
@venkatbollimuntha178
@venkatbollimuntha178 5 лет назад
Excellent!! Clear & Concise . Thanks so much.
@lazben1267
@lazben1267 2 года назад
Ciao Joe, Thank you very much for your valued mini course! Merry Christmas!
@oggiai
@oggiai 2 года назад
Thanks. You too my friend.
@josephfernando4867
@josephfernando4867 4 года назад
This was indeed extremely helpful , thanks for sharing
@BalamuruganMCA
@BalamuruganMCA 5 лет назад
Nice. Very Wonderful tutor video on java 8 streams.
@yogeshchaudhari9971
@yogeshchaudhari9971 3 года назад
Amazing explanation... short n simple and direct to the point
@vikingofengland
@vikingofengland 2 года назад
Short and concise, good job.
@javacoder60
@javacoder60 4 года назад
Beautiful work, sir! Very nicely explained!!
@SauravSarangi00
@SauravSarangi00 5 лет назад
You sir... are a gem!!
@lexplay85
@lexplay85 4 года назад
Just awesome! Very practical, very simple. I only need to practice. Thanks man!!!!
@arthastfp
@arthastfp 2 года назад
I'd like to point out something about example 7. You said it's better to first filter the stream, and then apply mappers. But you are first mapping the original dataset to a new lowercased dataset, therefore iterating through all the info, which in cases of massive amounts of data will slow down the application. The optimal solution is to first filter the stream, and then lowercase the remaining items. The same goes for example 8. This is just a nitpick on a great course overall, and I thank you for posting it!
@oggiai
@oggiai 2 года назад
Yes, you are right.
@chaoticcosal2770
@chaoticcosal2770 Год назад
Very clear cut programming, Thanks Joe for the collection of questions and solution.
@arthurezeagbo3986
@arthurezeagbo3986 3 года назад
Thank you so much for this content. You made everything simple.
@abhaydixit499
@abhaydixit499 5 лет назад
best video on Stream.....thank you so much
@nramca
@nramca 4 года назад
Very well structured ! Thank you for uploading
@ayasswain
@ayasswain 4 года назад
Wonderful explanation about Java streams. Thank you very much.
@GabrielTobing
@GabrielTobing 2 года назад
Hey dude, thanks so much for making this video. I never knew the Stream API was a thing, and thought it was hard. After you gave those examples and all, I know understand it. This seems to be a really useful API indeed and can't wait to use it, not only that, but it seems much easier.
@jakovkusic4219
@jakovkusic4219 3 года назад
By far the best video about streams on the Internet
@kirankumarmothukuri8744
@kirankumarmothukuri8744 3 года назад
Thank you very much James. It's very good demonstration. Keep it up.
@gamerauto
@gamerauto Год назад
Man this is really beautifully explained, I really love this video, and thanks for including Arijit Singh, love from India 🇮🇳
@karttikmishra4291
@karttikmishra4291 3 года назад
How did this video get dislikes? What did the audience want from the video? I just loved the clarity of explanation and the ease with which he does that.
@pigeon1542
@pigeon1542 3 года назад
spot on tutorial, thanks for the introduction into streams, have a nice day.
@semilife
@semilife 3 месяца назад
Effortless discussion of a wide variety of stream operations examples. Very good collection of useful examples, to use a guide and a reference.
@SpoonOfSpices
@SpoonOfSpices 4 года назад
Excellent explanation..Thanks Joe
@glnarayan565
@glnarayan565 6 лет назад
Very neat explanation with example Joe!
@carbonateddippingjam4970
@carbonateddippingjam4970 3 года назад
THIS IS THE VIDEO I WAS LOOKING FOR. Thank you.
@lokmanboukhoulda4496
@lokmanboukhoulda4496 3 года назад
Wow great explanation, thanks Joe!
@ManishYadav-mt6zt
@ManishYadav-mt6zt 3 года назад
This is short precise and gives all the valuable information. Thank You so much for the nice video!
@balyaajiskan2194
@balyaajiskan2194 2 года назад
best one .. i ever watched..well explained... thanks
@chowdhuryfarsadaurangzeb5080
@chowdhuryfarsadaurangzeb5080 4 года назад
Very well explained. You used great examples.
@rafdnaah6078
@rafdnaah6078 4 года назад
Excellent tutorial. I didn't know this exist in java. Loving it. Looks like Java is expanding its wings in the data science world.
@WHYCANTIFINDMYMONEY
@WHYCANTIFINDMYMONEY 4 года назад
Gr8 insight
@shankarghimire4492
@shankarghimire4492 3 года назад
Wow! short but very powerful tutorial! You made Streams operations so easy to learn in Java. Except you, everybody starts their tutorial by saying 'Stream is the most difficult topic to learn and understand in Java'. But, you proved them wrong! Thanks a lot for sharing your knowledge with the world! Expect more tutorials especially on functional programming in Java in the same simple format. Cheers! :) :) :)
@anwardarkazanli7160
@anwardarkazanli7160 Год назад
Very thorough explanation, thanks a lot!
@changhaizhu7854
@changhaizhu7854 Год назад
Very nice Tutorial. Thanks a lot, Joe
@evgeniynorfolk5909
@evgeniynorfolk5909 Год назад
Thanks for good and understandable examples! You are nice teacher!
@ginopeduto4264
@ginopeduto4264 4 года назад
thx a lot - nice overview and well explained!
@Momo-qr3rd
@Momo-qr3rd 2 года назад
Finally I am understanding this topic! Thank you very much
@marcinkolenda2344
@marcinkolenda2344 6 лет назад
Great quickstart guide.
@psonney
@psonney 4 года назад
Thank you. in example 9 , we do need to close the bands2 stream as well.
@sairaj5076
@sairaj5076 3 года назад
great explanation with examples, just awesome
@saurabhgupta607
@saurabhgupta607 2 года назад
Helpful Video with great examples
Далее
Optionals In Java - Simple Tutorial
15:53
Просмотров 188 тыс.
Stream API in Java
26:04
Просмотров 251 тыс.
every MAN needs this! 👀
00:59
Просмотров 1,5 млн
The World's Fastest Cleaners
00:35
Просмотров 15 млн
Как я сделала трек «Сестра»!
00:21
Java Streams Tutorial | 2020
19:13
Просмотров 251 тыс.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Functional Programming with Java Streams API
50:00
Просмотров 169 тыс.
Map and HashMap in Java - Full Tutorial
10:10
Просмотров 511 тыс.
every MAN needs this! 👀
00:59
Просмотров 1,5 млн