Java 8 Lambda Basics 23 - Introduction To Streams

  Рет қаралды 181,564

Java Brains

Java Brains

Күн бұрын

Пікірлер: 100
@sagar7730
@sagar7730 7 жыл бұрын
I am a fan of the way you start your course with such simple examples &explanations, & then so smoothly navigate through the complex part with ease for your students
@brandonflorida1092
@brandonflorida1092 6 жыл бұрын
You're much clearer than any other Web software related teacher.
@uchennannamani5795
@uchennannamani5795 2 жыл бұрын
The best explanation of java streams that I have seen so far.................. excellent !!!
@willhan2830
@willhan2830 4 жыл бұрын
Sir, you have an exceptional talent for explaining complex concepts in a very clear way. Thank you for your very good work.
@neilcowleyUK
@neilcowleyUK Жыл бұрын
Possibly one of the best explanations I've heard on Streams, well done!
@hyperborean72
@hyperborean72 8 жыл бұрын
Thank you so much. You have a great talent of making frightening things simple
@christianitis
@christianitis 4 жыл бұрын
RETVRN
@padkote_rahul1234
@padkote_rahul1234 Жыл бұрын
this channel always blow my mind by the explaining things in the breaking the ice manner. streams is the concept where i always struct to learn but this video made me take a look man.
@shuchami
@shuchami 7 жыл бұрын
This is a very good course. Any chance on a separate course on streams?
@ke30_
@ke30_ 3 жыл бұрын
I just have to comment: this course is EXCELLENT, thank you
@nischaljadhav8395
@nischaljadhav8395 2 жыл бұрын
Though this course is 6 years old still its content is fresh and helpful. Who else is here to watch this video in 2023 : )
@chandreshpratap
@chandreshpratap 8 ай бұрын
2024
@AbhishekKumar-uo6we
@AbhishekKumar-uo6we 2 ай бұрын
@@chandreshpratap 2024
@resnik20
@resnik20 8 жыл бұрын
Awesome analogy for the streams concept!
@tirthjayswal9895
@tirthjayswal9895 3 жыл бұрын
Finally I can say I have understood the basics of Streams.
@indra4011
@indra4011 2 жыл бұрын
The difference in mode you deliver your content stays there for lifelong ,would love some content on analysing concurrency issues, profiling...
@kathiruby
@kathiruby 7 жыл бұрын
This series of tutorial is excellent. Hats off !!!
@solomonaryeetey7370
@solomonaryeetey7370 7 жыл бұрын
This guy must win an award!!!!!
@jayan007videos
@jayan007videos 5 жыл бұрын
Beautiful analogy. Love your style of teaching. Keep it up...
@memorablename5187
@memorablename5187 7 жыл бұрын
streams have completely changed how i write java they are simply awesome
@lubasiteddy
@lubasiteddy 6 жыл бұрын
You did justice to the topic at hand, streams make sense now
@diegogiardini
@diegogiardini 3 жыл бұрын
It helped me a lot getting into streams! Thx!
@atanumondal8078
@atanumondal8078 7 жыл бұрын
You are a great teacher . You are the reason I am still coding . Please make one course for streams as well . It will be very helpful for lazy guys like me whom you spoon feed all the time with your knowledge.
@mitalivarshney5168
@mitalivarshney5168 6 жыл бұрын
Your perfect analogy made concept of streams clear in my mind. Thanks a lot!
@rakeshmehra6321
@rakeshmehra6321 7 жыл бұрын
Thank you, I was banging my head to understand these concepts. Only you explained it in right manner.
@alessandrobruni568
@alessandrobruni568 Жыл бұрын
Grazie.
@Java.Brains
@Java.Brains Жыл бұрын
Thanks so much!
@perschistence2651
@perschistence2651 4 жыл бұрын
Unfortunately the link in the video description is not working.
@fc6827
@fc6827 5 жыл бұрын
You taught me something I was afraid to learn. Keep rocking
@sssauka
@sssauka 4 жыл бұрын
amazing explanation of streams !
@sakuragi1111
@sakuragi1111 3 жыл бұрын
Thank you so much! Excellent explanation!
@sanjeevs2127
@sanjeevs2127 6 жыл бұрын
This is simply brilliant. Great job!
@mikeCavalle
@mikeCavalle 3 жыл бұрын
excellent example and presentation.
@SanjuChougule
@SanjuChougule 6 жыл бұрын
Amazing skills you have... Explained in a lucid manner...
@rezoanhasib8394
@rezoanhasib8394 5 жыл бұрын
Omg this is so useful and easy to understand. I guess Kaushik is just being Kaushik out here lol. Plz do an advanced Stream and Lambda playlist for all us plz plz :D
@sharidass1408
@sharidass1408 8 жыл бұрын
production line example makes a lot of sense!
@kaushikighosh
@kaushikighosh 4 жыл бұрын
Great course. Has improved my understanding of Java 8 a lot. Can you also do a tutorial on java 8 default and static method in interface?
@rajas4556
@rajas4556 4 жыл бұрын
Well explained. Thank you
@nitantjoshi8614
@nitantjoshi8614 4 жыл бұрын
Very helpful. Thank You.
@aakashKumbhare
@aakashKumbhare 4 жыл бұрын
hats off!!!! conveyer belt example
@syedshahasad9551
@syedshahasad9551 8 жыл бұрын
Great! You made it quite simple :)
@mahesh41000
@mahesh41000 6 жыл бұрын
In Streams, will the second element start processing simultaneously while the first element is down the lane? or else the second element will only be started after the first element is done processing???
@keerthichandrac2507
@keerthichandrac2507 5 жыл бұрын
You made my day! Convert the complex things to easy to understand. Could you do more videos on Streams concept please? Waiting eagerly. :)
@ajitganiger6699
@ajitganiger6699 7 жыл бұрын
Very powerful,,, thanks for nice explanation
@RajeshPatel-of3qo
@RajeshPatel-of3qo 7 жыл бұрын
I tried testing the performance and the streams degrades performance a lot. The test I ran was with half million Integer of ArrayList and tried the forEach loop on stream (list.stream.filter.foreach), traditional for loop and for-in loop and stream was slowest. I assume multiple operations on the stream creates new iterator which slows it down? Any explanation? I will really like to know.
@Isheel
@Isheel 5 жыл бұрын
Try foreachinparellel
@anandraghuvanshi2116
@anandraghuvanshi2116 4 жыл бұрын
Very easily you have explained the concepts. Really liked it. Do you have have full java 8 tutorial in depth ?
@bhargavjoshi9
@bhargavjoshi9 6 жыл бұрын
Please make a separate course for streams. It would be very helpful as this course
@celecha
@celecha 7 жыл бұрын
Thank you! Loved the analogy!
@manojmajumdar3815
@manojmajumdar3815 6 жыл бұрын
The filter and foreach operations can be done using a for-in loop and an if condition, so why use streams for that?
@monsterhuntergo
@monsterhuntergo 2 жыл бұрын
Hi Kaushik, hope you'll have separate course for Streams including in-depth.. 🙏 thanks so much
@dictatorts
@dictatorts 7 жыл бұрын
But we can do all operations on all elements in one loop. Streams can do this more effectively or just make code more clear and easy?
@aaroldaaroldson708
@aaroldaaroldson708 7 жыл бұрын
yes. I don't get it too. Did you understand the reason?Please reply
@sreedevikoppula1459
@sreedevikoppula1459 6 жыл бұрын
As per my understanding, if you are including all operations in one loop, all these operations will be handled only by one core and that too sequentially. But, by using streams, in the example given in the video, one core handles the filtering of a person based on the last name and soon after the filtering is done, the result is forwarded to the next core that handles the printing of the first name, where meanwhile, the first core is acting on the second element in the stream for condition check, etc. This enables the parallel processing on the list, where we can expect some performance improvement.
@hyperborean72
@hyperborean72 4 жыл бұрын
It's powerful but it looks like just another form to organize the same 'assembly line' processing identical to for(if()). So what is the advantage in your opinion? Filter() mislooks like more economical but in realty it processes the collection the same way - from the beginning to the end
@kapiljain7596
@kapiljain7596 4 жыл бұрын
Your videos are really good. It is helping me to grow technically. Just a suggestion can you please increase the font size while coding.
@zzzz26526
@zzzz26526 3 жыл бұрын
Great video. So essentially this is like LINQ in .NET?
@sanketb7128
@sanketb7128 5 жыл бұрын
Is it possible to add multiple filter conditions in stream which are 'independent' of each other? Imagine a traditional for loop on a list that has 2/3 if conditions that are not related to each other (without else)?
@pragun1993
@pragun1993 4 жыл бұрын
@Java Brains : So, according to your assembly line analogy, the filter operation would be applied to first element and then based on outcome would be sent to next operation which is forEach, and so on for the rest of all the elements. I hope it's not waiting for filter operation to be applied to all of the elements before sending them to forEach, then streams would be no different than collections. Is there a way we can check that what you explained is how streams work in the background?
@jvsnyc
@jvsnyc 4 жыл бұрын
:azy evaluation is pretty awesome, you can see this stuff in this excellent video:kzbin.info/www/bejne/Z4DTcpqQq76LgrM
@girishsudarshan1879
@girishsudarshan1879 4 жыл бұрын
Wish I could give more than 1 like for this video.
@hyperborean72
@hyperborean72 4 жыл бұрын
Starting Java8 List has forEach() method itself. So what's the point of having List.stream().forEach() instead just List.forEach()? - the additional set of the methods available in Stream API?
@anupamkumartejaswi9210
@anupamkumartejaswi9210 5 жыл бұрын
Understanding streams was never this much simple
@akshaygupta1990
@akshaygupta1990 6 жыл бұрын
hi Sir .. great fan of yours .. i am eagerly waiting for some more streams and collections sessions from you .. thanks in advance..
@SonnyLando
@SonnyLando 5 жыл бұрын
how can you filter out numbers between two numbers? For example, there is an array: new int[] {3, 1, 6, 7, 15, 9,10} I don't ant to .sum() the numbers between and including 6 and 9. So it would .sum() 3,1, and 10. Thanks for your help in advance...
@vJDiZZ
@vJDiZZ 6 жыл бұрын
What IDE is this?
@danielgarcia4151
@danielgarcia4151 3 жыл бұрын
But isn't this like a "for" loop with an "if" inside and several operations applied there to the element of the collection? I can't see any difference in concept, only in the way to write it...
@shefaligadia7094
@shefaligadia7094 4 жыл бұрын
Please provide an advanced course on lambda, collections and streams
@brave111111
@brave111111 7 жыл бұрын
Awesome. Thank you
@TheGuroguro12
@TheGuroguro12 8 жыл бұрын
Thank you very much.
@maverick_entertainment21
@maverick_entertainment21 7 жыл бұрын
Thanks for the wonderful tutorial. Coming from a Javascript background, I find streams quite easy to understand. But what is happening inside ? The analogy is perfect, but I am asking what is going on at the data-structure level. Is there a scope for parallel execution as well ?
@umabapat8826
@umabapat8826 6 жыл бұрын
What if I want to execute if (filter) and else part with stream? like if lastname doesnt start with C, do something else?
@SamuelHauptmannvanDam
@SamuelHauptmannvanDam 6 жыл бұрын
What exactly does the package do?
@anpowersoftpowersoft
@anpowersoftpowersoft 5 жыл бұрын
Just Excelolent. Kindly upload some courses on java 8 like Streams.
@shravandurvasula5904
@shravandurvasula5904 8 жыл бұрын
Indeed very powerful. Its a sin to not use them wherever there is a chance.
@vinodnarapuram6054
@vinodnarapuram6054 5 жыл бұрын
Hi Koushik, Your videos and explanations are very good. Is it possible to make a playlist in detail on Stream API? Appreciate your response in advance. Thanks!
@muditbajpai1218
@muditbajpai1218 5 жыл бұрын
Very informative course. For more thorough knowledge on Stream API, could you please let me know another source, probably a video tutorial which explains in deep. There are many in the market, but seeing all of them and then deciding would take a lot of time. Help would be appreciated.
@aaroldaaroldson708
@aaroldaaroldson708 7 жыл бұрын
What's the advantage of the stream pattern over this code? : for(Person p : people){ if(!p.getLastName().startsWith("C")){ continue; } System.out.println(p.getFirstName()); } I've checked both approaches and the code above executes in ~1332330 nanoTime. And your code executes in ~61750418. So it's about 60 million nanoTimes more than the old fashioned code. Any reply is appreciated
@jvsnyc
@jvsnyc 4 жыл бұрын
For one thing, it is easily parallelizable "for free". Of course nothing is for free, but if you are in a rush and willing to throw CPU's/cores at your foreach....
@syedhuzaifa2106
@syedhuzaifa2106 3 жыл бұрын
awesome
@einnorw
@einnorw 5 жыл бұрын
how are you able to use the getName(); method with out it being declared
@tanozepp
@tanozepp 5 жыл бұрын
I have the same question. My guess is that there is one or more videos in this series where he has declared those functions.
@BrajeshKumar-np1br
@BrajeshKumar-np1br 5 жыл бұрын
He imported Person class (from another package) which has getFirstName() method.
@mrudulaization
@mrudulaization 6 жыл бұрын
Please make a separate course on java8 collections and streams
@travelshortsbykamini
@travelshortsbykamini 5 жыл бұрын
Why don't you publish all your courses on UDEMY?
@patel644
@patel644 4 жыл бұрын
please do make videos on advance lambda and streams...Please
@bhanuchirutha
@bhanuchirutha 7 жыл бұрын
great analogy
@hengcui6786
@hengcui6786 4 жыл бұрын
List people = Arrays.asList( new Person("Charles", "Dickens", 60), new Person("Lewis", "Carrol", 42), new Person("Thomas", "Carlyle", 51), new Person("Charlotte", "Bronte", 45), new Person("Matthew", "Arnold", 39) );
@perschistence2651
@perschistence2651 4 жыл бұрын
?
@chiranjeevibabakondapalli2393
@chiranjeevibabakondapalli2393 7 жыл бұрын
Waiting for more sessions on Java8 Streams
@vigneshdeven3177
@vigneshdeven3177 4 жыл бұрын
please , please make advance course video on lambda and collections
@neerajsuthar3931
@neerajsuthar3931 6 жыл бұрын
A piece of cake :) :) :) That I just ate.....
@sivashankar1850
@sivashankar1850 5 жыл бұрын
make a vedios on collections and streams
@huseyinaydin99
@huseyinaydin99 8 жыл бұрын
way gardaşıım lamdayı da senden öğrendim. (:
@Bobxchen333
@Bobxchen333 6 жыл бұрын
Stream is immutable.
@disekjoumoer
@disekjoumoer 7 жыл бұрын
That analogy was poor. There was little relevance to various people all working on the same object. Threads would have been more useful here.
@tomorrowhastowait
@tomorrowhastowait 7 жыл бұрын
@Rajmanov
@Rajmanov 5 жыл бұрын
Your voice is really annoying, but it's well explained.
@balkrushnawagh2641
@balkrushnawagh2641 7 жыл бұрын
Waiting for more sessions on Java8 Streams
Java 8 Lambda Basics 24 - More About Streams
6:17
Java Brains
Рет қаралды 123 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 796 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Java 8 STREAMS Tutorial
18:10
Programming and Math Tutorials
Рет қаралды 751 М.
What is API gateway really all about? Java Brains - Brain Bytes
8:56
Java lambda λ
18:00
Bro Code
Рет қаралды 102 М.
Java Streams: Beyond The Basics
49:21
Jfokus
Рет қаралды 73 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 167 М.
Java 8 to 18: Most important changes in the Java Platform
31:24
Teaching old Streams new tricks  By Viktor Klang
50:51
Devoxx
Рет қаралды 23 М.
Java 8 Lambda Basics 21 - Method References
10:27
Java Brains
Рет қаралды 175 М.
Java Streams API #1 - The Basics
17:58
Jakob Jenkov
Рет қаралды 38 М.
Java 8 Lambda Basics 14 - Lambda Exercise Solution
17:32
Java Brains
Рет қаралды 236 М.