Java 8 STREAMS Tutorial

  Рет қаралды 748,195

Programming and Math Tutorials

Programming and Math Tutorials

Күн бұрын

Пікірлер
@iOnlySay
@iOnlySay 3 жыл бұрын
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 3 жыл бұрын
Hey Joe, if you copy paste these timestamps in the video description KZbin will auto add sections to the video, could be helpful
@gerdsfargen6687
@gerdsfargen6687 2 жыл бұрын
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 9 ай бұрын
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.
@javadmahdiyoun5552
@javadmahdiyoun5552 3 жыл бұрын
دمت گرم با این آموزش خوبت ، ایولا Thanks for this high quality teaching, keep going
@pascalgu6771
@pascalgu6771 6 жыл бұрын
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
@worstgamingch
@worstgamingch 3 жыл бұрын
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 2 жыл бұрын
Spot on. This video...the instructor...excellent.
@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 3 жыл бұрын
Exactly,same for me too, I also now enjoy using streams
@gerdsfargen6687
@gerdsfargen6687 2 жыл бұрын
@@teminoah2960 They just cut down on so much bulk code and make Java more of a joy to work with!
@fc6827
@fc6827 3 жыл бұрын
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!
@gongjiaji2489
@gongjiaji2489 6 жыл бұрын
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?
@oldapolda3567
@oldapolda3567 2 жыл бұрын
The Best Explaination i have ever seen about java streams. Thank You So much.
@Pontification
@Pontification 2 жыл бұрын
This is one of the most useful techniques in Java Ive ever seen.
@siphesihlesithungu2356
@siphesihlesithungu2356 5 жыл бұрын
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.
@쉐틀
@쉐틀 4 жыл бұрын
This is the best video to explain Java collection I've seen in KZbin. Thank you!
@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! :) :) :)
@teminoah2960
@teminoah2960 3 жыл бұрын
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.
@pslamba
@pslamba 2 жыл бұрын
Kudos for making your example data so culturally diverse!
@joejamesusa
@joejamesusa 2 жыл бұрын
I try to match my diverse viewers.
@nabinrai749
@nabinrai749 4 жыл бұрын
this type of tutorial covers more topics and condition than others typing n explaining the course
@Nothoughtinvolved
@Nothoughtinvolved 6 жыл бұрын
Only time I've seen Java 8 streams explained clearly online. Thank you Joe
@suseelkumarannamraju
@suseelkumarannamraju 3 жыл бұрын
I got a hands-on on streams a bit more than before. Thanks for making this video Joe.
@netindu
@netindu 3 жыл бұрын
A one-stop place for Streams. Excellent video. Great Job Joe !
@dev-skills
@dev-skills 4 жыл бұрын
Very good collection of Stream examples, Learning about Files and IntSummaryStatistics was a bonus.
@810612381
@810612381 6 жыл бұрын
Intensive and clear, great value for each minute watched on this video
@karttikmishra4291
@karttikmishra4291 4 жыл бұрын
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.
@lazben1267
@lazben1267 3 жыл бұрын
Ciao Joe, Thank you very much for your valued mini course! Merry Christmas!
@joejamesusa
@joejamesusa 3 жыл бұрын
Thanks. You too my friend.
@avinpaladugu
@avinpaladugu 6 жыл бұрын
Fantastic. Crystal clear and no nonsense class.
@abail7010
@abail7010 5 жыл бұрын
Wow Java is actually much better when it comes to file handling than expected! Great video, thanks!!
@jakovkusic4219
@jakovkusic4219 4 жыл бұрын
By far the best video about streams on the Internet
@salmanbaig8088
@salmanbaig8088 3 жыл бұрын
Thank you so much. This is the best explanation I have seen so far with great examples.
@anjalisajeev
@anjalisajeev 3 жыл бұрын
I have watched several videos on this, and this was the best! Helped me understand the concept.
@afifkhaja
@afifkhaja 2 жыл бұрын
Fantastic. Although it took my 40 min to write out, run, and understand the code, it was well worth it
@stevermadter8430
@stevermadter8430 4 жыл бұрын
5:18 System.out::print is the shortcut lambda expression for x -> System.out.print(x). Its Sytnax sugar, the compiler doesnt notice a diffrence
@shubhampareek2378
@shubhampareek2378 4 жыл бұрын
There's one point to note, you can only use static functions with `ClassName::functionName` format. Instance method have to be called using lambda.
@sumitbabel5415
@sumitbabel5415 4 жыл бұрын
@@shubhampareek2378 No not necessary, we can also call getters as well e.g (ClassName::getterMethod) - this will also call the public getter method, kindly let me know if you need a program also
@ShoeibShargo
@ShoeibShargo 3 жыл бұрын
Thank you for clarifying. I was confused why would he call print function like that. This lambda expression is making code unnecessarily complex for me.
@semilife
@semilife 11 ай бұрын
Effortless discussion of a wide variety of stream operations examples. Very good collection of useful examples, to use a guide and a reference.
@punyabrotad
@punyabrotad 6 жыл бұрын
excellent tutorial...exactly what is needed for java developers upgrading to functional programming.
@rafdnaah6078
@rafdnaah6078 5 жыл бұрын
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
@JobinJacobKavalam
@JobinJacobKavalam 2 жыл бұрын
Great presentation ... plain and simple ... that is what we want, almost always.
@Romanov1309
@Romanov1309 6 жыл бұрын
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!
@rkulk
@rkulk 3 жыл бұрын
Excellent work Joe, thank you for explaining this with easy to understand examples.
@chrisbessant3315
@chrisbessant3315 3 жыл бұрын
A great video - small and simple examples that get the message across clearly. Thank you.
@Somerandomnessvvv
@Somerandomnessvvv 4 жыл бұрын
Streams are saving a punch of blocks of code, this is really helpful. Great explanation.
@AnasMughal
@AnasMughal 3 жыл бұрын
Very concise and focused presentation. I appreciate that.
@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.
@mustapharaimilawal8053
@mustapharaimilawal8053 10 ай бұрын
Wow, this is so insightful, concise introduction to streams api. This is so easy to follow, thanks a lot sir.
@joejamesusa
@joejamesusa 9 ай бұрын
You are most welcome
@Hufsa
@Hufsa 3 жыл бұрын
Really good tutorial, I have used streams but I wasn't sure of some concepts, now it's clear, thanks a lot!
@sehajpreetsingh4177
@sehajpreetsingh4177 3 жыл бұрын
No nonsense explanation. Thank you very much.
@gamerauto
@gamerauto 2 жыл бұрын
Man this is really beautifully explained, I really love this video, and thanks for including Arijit Singh, love from India 🇮🇳
@chaoticcosal2770
@chaoticcosal2770 2 жыл бұрын
Very clear cut programming, Thanks Joe for the collection of questions and solution.
@puneetkocher3370
@puneetkocher3370 5 жыл бұрын
Superb video, i have seen many videos but didn’t find any other video giving this much of examples
@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.
@pritampatil435
@pritampatil435 5 жыл бұрын
Excellent. Best tutorial on java stream came across.
@saravanant7283
@saravanant7283 6 жыл бұрын
One of the best Java 8 content in youtube.
@joejamesusa
@joejamesusa 6 жыл бұрын
Thanks. :-)
@lexplay85
@lexplay85 4 жыл бұрын
Just awesome! Very practical, very simple. I only need to practice. Thanks man!!!!
@Momo-qr3rd
@Momo-qr3rd 3 жыл бұрын
Finally I am understanding this topic! Thank you very much
@ensoniq2k
@ensoniq2k 5 жыл бұрын
This is such a mind blowing feature, thank you very much for explaining in such detail!
@arthastfp
@arthastfp 3 жыл бұрын
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!
@joejamesusa
@joejamesusa 3 жыл бұрын
Yes, you are right.
@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
@ranachan5555
@ranachan5555 4 жыл бұрын
Joe, Great explanation , Covered many but not more like parallel streams and all.
@vigneshbaskaran1990
@vigneshbaskaran1990 2 жыл бұрын
Beautiful , nicely explained , pls add List also add one example . that would be great
@fotoamgamgfoto3695
@fotoamgamgfoto3695 3 жыл бұрын
Thanks! I quit using Java after 12 years of Java development around V1.4 a couple of years ago when Generics came into it and I hate Generics. I become a Frontend JS developer, but now need Java again as a fullstack to learn what new things come up and this Stream API looks cool, smilar to ES6 stuff! I might be interested in Java again.
@JERILNADAR
@JERILNADAR 4 жыл бұрын
Super tutorial. Made me go from hating Streams to loving it.
@suriyaprakhash
@suriyaprakhash 5 жыл бұрын
U nailed it. Short crisp and clear. Appreciate your work👍
@gsabella4
@gsabella4 Жыл бұрын
Fantastic video on Streams, and really appreciate the content on your Java repo.
@joejamesusa
@joejamesusa Жыл бұрын
Great to hear!
@SHSelect
@SHSelect 2 жыл бұрын
awesome, an easy understanding video for me to have a basic knowledge of Steam class
@rajeshshrivastava3983
@rajeshshrivastava3983 3 жыл бұрын
Amazingly explained java8 stream,lambda use in just 18 min. Which is more awesome 😎
@NanCitizen
@NanCitizen 6 ай бұрын
you are a smart cookie. Thank you for this refresher
@dianadutka5764
@dianadutka5764 4 жыл бұрын
love how it was simply straight to the point!
@tarun3kumar
@tarun3kumar 3 жыл бұрын
Very informative tutorial. btw 3:05 anyMatch() and findFirst() are terminal operations and do not return Stream.
@Anubis10110
@Anubis10110 4 жыл бұрын
I really want to understand WHY PEOPL dislike it...They most properly envy HIM 1. Perfect English Accent 2. Perfect Explanation 3. Samples 4. Code What else do we need :D Thank you so mcuh
@vladimirljubopytnov5193
@vladimirljubopytnov5193 4 жыл бұрын
I guess because of errors? But I agree, its pleasant teaching overall.
@moayadyaghi
@moayadyaghi 4 жыл бұрын
Is accent really the first priority?
@kirankumarmothukuri8744
@kirankumarmothukuri8744 3 жыл бұрын
Thank you very much James. It's very good demonstration. Keep it up.
@eternalwanderer6057
@eternalwanderer6057 6 жыл бұрын
Just commenting to say thanks, Joe. This was a VERY helpful tutorial. THANK YOU!
@masebor
@masebor 3 жыл бұрын
spot on tutorial, thanks for the introduction into streams, have a nice day.
@lajoskorona3501
@lajoskorona3501 4 жыл бұрын
Ah, lovely, thanks! I can't use a functional language for my exams (Haskell
@yogeshchaudhari9971
@yogeshchaudhari9971 3 жыл бұрын
Amazing explanation... short n simple and direct to the point
@vikingofengland
@vikingofengland 2 жыл бұрын
Short and concise, good job.
@ManishYadav-mt6zt
@ManishYadav-mt6zt 4 жыл бұрын
This is short precise and gives all the valuable information. Thank You so much for the nice video!
@psonney
@psonney 4 жыл бұрын
Thank you. in example 9 , we do need to close the bands2 stream as well.
@carbonateddippingjam4970
@carbonateddippingjam4970 3 жыл бұрын
THIS IS THE VIDEO I WAS LOOKING FOR. Thank you.
@shahradabghari176
@shahradabghari176 Жыл бұрын
best video about stream that i have found
@exxzxxe
@exxzxxe 2 жыл бұрын
Very well done, Mr. James.
@joejamesusa
@joejamesusa 2 жыл бұрын
Thanks
@sandykhp
@sandykhp 4 жыл бұрын
thanks joe. love and respect for your work from india
@anwardarkazanli7160
@anwardarkazanli7160 2 жыл бұрын
Very thorough explanation, thanks a lot!
@venkatbollimuntha178
@venkatbollimuntha178 5 жыл бұрын
Excellent!! Clear & Concise . Thanks so much.
@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! 🤔
@changhaizhu7854
@changhaizhu7854 2 жыл бұрын
Very nice Tutorial. Thanks a lot, Joe
@mathisinav4267
@mathisinav4267 4 жыл бұрын
18 minutes well spent, excellent tutorial
@matt-g-recovers
@matt-g-recovers 3 жыл бұрын
I usually do a like/dislike ratio assessment before committing time to a tutorial. Sheesh lot of folks liked this vs not right? ~100:1 well shoot if that doesn't seem like too much, it is an order of magnitude better than what I consider the gold standard for a good video ( 10:1 like to dislike). Great video :)
@joejamesusa
@joejamesusa 3 жыл бұрын
Thanks! I hope you added another like. :-) FYI, ratio for my whole channel is around 96-97% likes to 3 or 4 dislikes. This is one of my best videos.
@nimbostratue
@nimbostratue 5 жыл бұрын
Thank you Joe for this excellent tutorial which is probably better than most of the ones out there.
@lokmanboukhoulda4496
@lokmanboukhoulda4496 4 жыл бұрын
Wow great explanation, thanks Joe!
@dontknow6356
@dontknow6356 3 жыл бұрын
Best tutorial i have ever seen
@MrScubesnaxx
@MrScubesnaxx 3 жыл бұрын
Great presentation....you really deserve more subs!
@ashu47202
@ashu47202 6 жыл бұрын
REALLY NICE EXAMPLES explaining various usage options of Streams API. Thank you !!!
@balyaajiskan2194
@balyaajiskan2194 3 жыл бұрын
best one .. i ever watched..well explained... thanks
@alexandre9051
@alexandre9051 Жыл бұрын
great video! even though it is 5 years old, it is still at very good starting point. Thank you
@tarunmadan6109
@tarunmadan6109 3 жыл бұрын
Good video. Thank you for explaining streams with examples.
@evgeniynorfolk5909
@evgeniynorfolk5909 2 жыл бұрын
Thanks for good and understandable examples! You are nice teacher!
@jasonzhang1133
@jasonzhang1133 2 жыл бұрын
Thank you so much for such a nice video explaining the stream concept very well.
@SunilKumar-yd8xv
@SunilKumar-yd8xv 4 жыл бұрын
16:28 : You don't need to declare parameter types. Below would work double total = Stream.of(7.3, 1.5, 6.2, 7.9).reduce(0.0, (a, b) -> a + b);
@ShoeibShargo
@ShoeibShargo 3 жыл бұрын
Being a novice, this is confusing to me whenever I come across a variable which is not declared in a program. How would this line of code determines what a and b is? Is it a var type by default if we do not declare it explicitly?
@vikasjain5466
@vikasjain5466 8 ай бұрын
Best Streams Tutorial out there
@eletronicof
@eletronicof 4 жыл бұрын
Thank you so much, regards from Colombia.
@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.
@luiscortes6563
@luiscortes6563 6 жыл бұрын
Great video! Loving streams already!
@tobyzhan7729
@tobyzhan7729 6 жыл бұрын
Simple, rich and elegant. Love this tutorial!
Java Streams API Explained (with examples)
18:09
Visual Computer Science
Рет қаралды 10 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 782 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 567 М.
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 581 М.
Optionals In Java - Simple Tutorial
15:53
Coding with John
Рет қаралды 223 М.
Java 8 Streams API
15:45
Defog Tech
Рет қаралды 155 М.
Java 8 to 18: Most important changes in the Java Platform
31:24
Java Streams Tutorial | 2020
19:13
Amigoscode
Рет қаралды 266 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 162 М.
Java 8 Streams | map () & flatMap() Example | JavaTechie
15:37
Java Techie
Рет қаралды 223 М.