Java 8 STREAMS Tutorial

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‬

Пікірлер: 541

  • @iOnlySay
    @iOnlySay3 жыл бұрын

    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 KZread 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!

  • @pascalgu6771
    @pascalgu67716 жыл бұрын

    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

    2 жыл бұрын

    I was taking course there and jump back here :P

  • @sanjeevkumar-fk3fn

    @sanjeevkumar-fk3fn

    2 жыл бұрын

    @@kevinjad4506 77777777777777777777777777777777777777777777777777777777777777777777777?7777777777777?7777777777777777777777777777777!(

  • @gerdsfargen6687

    @gerdsfargen6687

    Жыл бұрын

    Spot on. This video...the instructor...excellent.

  • @avinpaladugu
    @avinpaladugu5 жыл бұрын

    Fantastic. Crystal clear and no nonsense class.

  • @Nothoughtinvolved
    @Nothoughtinvolved5 жыл бұрын

    Only time I've seen Java 8 streams explained clearly online. Thank you Joe

  • @luiscortes6563
    @luiscortes65636 жыл бұрын

    Great video! Loving streams already!

  • @punyabrotad
    @punyabrotad5 жыл бұрын

    excellent tutorial...exactly what is needed for java developers upgrading to functional programming.

  • @siphesihlesithungu2356
    @siphesihlesithungu23565 жыл бұрын

    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.

  • @tobyzhan7729
    @tobyzhan77296 жыл бұрын

    Simple, rich and elegant. Love this tutorial!

  • @810612381
    @8106123815 жыл бұрын

    Intensive and clear, great value for each minute watched on this video

  • @sgtdutra
    @sgtdutra6 жыл бұрын

    Great great!!!! Excellent explanation... thank you very much. It was exactly what i need.

  • @DerSpudi
    @DerSpudi5 жыл бұрын

    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!

  • @apfelll
    @apfelll5 жыл бұрын

    Thank you for the very good tutorial. It's well explained and straight forward, exactly what I was looking for!

  • @rkulk
    @rkulk2 жыл бұрын

    Excellent work Joe, thank you for explaining this with easy to understand examples.

  • @atrantech11
    @atrantech113 ай бұрын

    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.

  • @Romanov1309
    @Romanov13096 жыл бұрын

    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!

  • @ensoniq2k
    @ensoniq2k4 жыл бұрын

    This is such a mind blowing feature, thank you very much for explaining in such detail!

  • @nabinrai749
    @nabinrai7494 жыл бұрын

    this type of tutorial covers more topics and condition than others typing n explaining the course

  • @netindu
    @netindu3 жыл бұрын

    A one-stop place for Streams. Excellent video. Great Job Joe !

  • @ashu47202
    @ashu472026 жыл бұрын

    REALLY NICE EXAMPLES explaining various usage options of Streams API. Thank you !!!

  • @eternalwanderer6057
    @eternalwanderer60575 жыл бұрын

    Just commenting to say thanks, Joe. This was a VERY helpful tutorial. THANK YOU!

  • @dianadutka5764
    @dianadutka57644 жыл бұрын

    love how it was simply straight to the point!

  • @suseelkumarannamraju
    @suseelkumarannamraju3 жыл бұрын

    I got a hands-on on streams a bit more than before. Thanks for making this video Joe.

  • @prathyusha252
    @prathyusha2524 жыл бұрын

    Wonderful explanation Joe. Thanks for the tutorial!

  • @user-qz8cu3li4z
    @user-qz8cu3li4z4 жыл бұрын

    This is the best video to explain Java collection I've seen in KZread. Thank you!

  • @chrisbessant3315
    @chrisbessant33153 жыл бұрын

    A great video - small and simple examples that get the message across clearly. Thank you.

  • @grzesieknowosad1568
    @grzesieknowosad15686 жыл бұрын

    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

  • @erdoaNNN
    @erdoaNNN6 жыл бұрын

    Great video, Joe! Thanks for the efforts and continue shooting videos like this please.

  • @fc6827
    @fc68272 жыл бұрын

    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!

  • @ashethebostonterrier4918
    @ashethebostonterrier49184 жыл бұрын

    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.

  • @Ajinkya20061989
    @Ajinkya200619895 жыл бұрын

    Great explanation. Really helped understanding the concepts. Thanks for sharing the knowledge!

  • @pritampatil435
    @pritampatil4355 жыл бұрын

    Excellent. Best tutorial on java stream came across.

  • @oldapolda3567
    @oldapolda35672 жыл бұрын

    The Best Explaination i have ever seen about java streams. Thank You So much.

  • @Hufsa
    @Hufsa2 жыл бұрын

    Really good tutorial, I have used streams but I wasn't sure of some concepts, now it's clear, thanks a lot!

  • @Pontification
    @Pontification Жыл бұрын

    This is one of the most useful techniques in Java Ive ever seen.

  • @anjalisajeev
    @anjalisajeev3 жыл бұрын

    I have watched several videos on this, and this was the best! Helped me understand the concept.

  • @gongjiaji2489
    @gongjiaji24895 жыл бұрын

    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?

  • @suriyaprakhash
    @suriyaprakhash5 жыл бұрын

    U nailed it. Short crisp and clear. Appreciate your work👍

  • @AnasMughal
    @AnasMughal3 жыл бұрын

    Very concise and focused presentation. I appreciate that.

  • @redbridgesoftware6394
    @redbridgesoftware63944 жыл бұрын

    thank you, Joe this is an excellent tutorial

  • @Somerandomnessvvv
    @Somerandomnessvvv3 жыл бұрын

    Streams are saving a punch of blocks of code, this is really helpful. Great explanation.

  • @salmanbaig8088
    @salmanbaig80883 жыл бұрын

    Thank you so much. This is the best explanation I have seen so far with great examples.

  • @sehajpreetsingh4177
    @sehajpreetsingh41773 жыл бұрын

    No nonsense explanation. Thank you very much.

  • @abail7010
    @abail70104 жыл бұрын

    Wow Java is actually much better when it comes to file handling than expected! Great video, thanks!!

  • @teminoah2960
    @teminoah29602 жыл бұрын

    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.

  • @nimbostratue
    @nimbostratue5 жыл бұрын

    Thank you Joe for this excellent tutorial which is probably better than most of the ones out there.

  • @venkatbollimuntha178
    @venkatbollimuntha1785 жыл бұрын

    Excellent!! Clear & Concise . Thanks so much.

  • @lazben1267
    @lazben12672 жыл бұрын

    Ciao Joe, Thank you very much for your valued mini course! Merry Christmas!

  • @oggiai

    @oggiai

    2 жыл бұрын

    Thanks. You too my friend.

  • @nramca
    @nramca4 жыл бұрын

    Very well structured ! Thank you for uploading

  • @josephfernando4867
    @josephfernando48674 жыл бұрын

    This was indeed extremely helpful , thanks for sharing

  • @JERILNADAR
    @JERILNADAR4 жыл бұрын

    Super tutorial. Made me go from hating Streams to loving it.

  • @lexplay85
    @lexplay854 жыл бұрын

    Just awesome! Very practical, very simple. I only need to practice. Thanks man!!!!

  • @JobinJacobKavalam
    @JobinJacobKavalam2 жыл бұрын

    Great presentation ... plain and simple ... that is what we want, almost always.

  • @dev-skills
    @dev-skills3 жыл бұрын

    Very good collection of Stream examples, Learning about Files and IntSummaryStatistics was a bonus.

  • @lokmanboukhoulda4496
    @lokmanboukhoulda44963 жыл бұрын

    Wow great explanation, thanks Joe!

  • @khalidqureshi6359
    @khalidqureshi63595 жыл бұрын

    Very informative with very clear and concise explanation.

  • @chaoticcosal2770
    @chaoticcosal2770 Жыл бұрын

    Very clear cut programming, Thanks Joe for the collection of questions and solution.

  • @vikingofengland
    @vikingofengland2 жыл бұрын

    Short and concise, good job.

  • @saravanant7283
    @saravanant72836 жыл бұрын

    One of the best Java 8 content in youtube.

  • @oggiai

    @oggiai

    6 жыл бұрын

    Thanks. :-)

  • @SauravSarangi00
    @SauravSarangi005 жыл бұрын

    You sir... are a gem!!

  • @glnarayan565
    @glnarayan5656 жыл бұрын

    Very neat explanation with example Joe!

  • @arthurezeagbo3986
    @arthurezeagbo39863 жыл бұрын

    Thank you so much for this content. You made everything simple.

  • @richaarora1775
    @richaarora17755 жыл бұрын

    Great explanation on Java Streams. Cleared the basic concepts of using Stream API.

  • @changhaizhu7854
    @changhaizhu7854 Жыл бұрын

    Very nice Tutorial. Thanks a lot, Joe

  • @GabrielTobing
    @GabrielTobing2 жыл бұрын

    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.

  • @carbonateddippingjam4970
    @carbonateddippingjam49703 жыл бұрын

    THIS IS THE VIDEO I WAS LOOKING FOR. Thank you.

  • @francescopiazza4882
    @francescopiazza48823 жыл бұрын

    Great , concise and rich!

  • @puneetkocher3370
    @puneetkocher33704 жыл бұрын

    Superb video, i have seen many videos but didn’t find any other video giving this much of examples

  • @afifkhaja
    @afifkhaja2 жыл бұрын

    Fantastic. Although it took my 40 min to write out, run, and understand the code, it was well worth it

  • @abhaydixit499
    @abhaydixit4995 жыл бұрын

    best video on Stream.....thank you so much

  • @AkimMoh
    @AkimMoh5 жыл бұрын

    THANK YOU I MISSED "x.contains()" NOW I KNOW HOW TO FILTER STRING

  • @007chanakya4
    @007chanakya4 Жыл бұрын

    Excellent video, many thanks!

  • @Momo-qr3rd
    @Momo-qr3rd3 жыл бұрын

    Finally I am understanding this topic! Thank you very much

  • @ManishYadav-mt6zt
    @ManishYadav-mt6zt3 жыл бұрын

    This is short precise and gives all the valuable information. Thank You so much for the nice video!

  • @TampaPirate
    @TampaPirate21 күн бұрын

    you are a smart cookie. Thank you for this refresher

  • @Jtube0101Mega
    @Jtube0101Mega Жыл бұрын

    Great lesson! Thank you very much!

  • @masebor
    @masebor3 жыл бұрын

    spot on tutorial, thanks for the introduction into streams, have a nice day.

  • @ayasswain
    @ayasswain5 жыл бұрын

    Wonderful explanation about Java streams. Thank you very much.

  • @kirankumarmothukuri8744
    @kirankumarmothukuri87443 жыл бұрын

    Thank you very much James. It's very good demonstration. Keep it up.

  • @diodorsaydofmi3504
    @diodorsaydofmi35043 жыл бұрын

    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! 🤔

  • @nicolasfeuchster8160
    @nicolasfeuchster81605 жыл бұрын

    Great video. Thank you for all of the information! =)

  • @javadmahdiyoun5552
    @javadmahdiyoun55523 жыл бұрын

    دمت گرم با این آموزش خوبت ، ایولا Thanks for this high quality teaching, keep going

  • @rafdnaah6078
    @rafdnaah60784 жыл бұрын

    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

  • @jakovkusic4219
    @jakovkusic42193 жыл бұрын

    By far the best video about streams on the Internet

  • @javacoder60
    @javacoder604 жыл бұрын

    Beautiful work, sir! Very nicely explained!!

  • @giaotran2018
    @giaotran2018 Жыл бұрын

    That was really clear. Thanks!

  • @shubhankarseth
    @shubhankarseth Жыл бұрын

    Thank you Joe, the tutorial is very good.

  • @ginopeduto4264
    @ginopeduto42644 жыл бұрын

    thx a lot - nice overview and well explained!

  • @tewodrosadmassu8846
    @tewodrosadmassu88465 жыл бұрын

    Love it, thanks Joe!!!

  • @pslamba
    @pslamba2 жыл бұрын

    Kudos for making your example data so culturally diverse!

  • @oggiai

    @oggiai

    2 жыл бұрын

    I try to match my diverse viewers.

  • @jasonzhang1133
    @jasonzhang11332 жыл бұрын

    Thank you so much for such a nice video explaining the stream concept very well.

  • @anwardarkazanli7160
    @anwardarkazanli7160 Жыл бұрын

    Very thorough explanation, thanks a lot!

  • @saurabhgupta607
    @saurabhgupta6072 жыл бұрын

    Helpful Video with great examples

  • @dontknow6356
    @dontknow63563 жыл бұрын

    Best tutorial i have ever seen

  • @marcinkolenda2344
    @marcinkolenda23446 жыл бұрын

    Great quickstart guide.

  • @69ayax
    @69ayax3 жыл бұрын

    the best explanation i've seen

  • @vikasjain5466
    @vikasjain54662 ай бұрын

    Best Streams Tutorial out there

  • @ivanchl
    @ivanchl Жыл бұрын

    This is excellent. Thank you!

  • @Shulkerkiste
    @Shulkerkiste4 жыл бұрын

    This is a great tutorial! Thank you! :)

  • @ranachan5555
    @ranachan55553 жыл бұрын

    Joe, Great explanation , Covered many but not more like parallel streams and all.