Java Streams Tutorial

  Рет қаралды 115,347

Keep On Coding

Keep On Coding

4 жыл бұрын

Twitch: / keeponcoding
Instagram: / keep_on_coding
Discord: / discord
My Gear: amazon.com/shop/keeponcoding
#keeponcoding #tech #programming
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting so I can continue to provide you with free content!

Пікірлер: 102
@KeepOnCoding
@KeepOnCoding Жыл бұрын
☕Want to master Java? Get my complete Java course: bit.ly/42mQlXE
@CoolPupGaming
@CoolPupGaming 2 жыл бұрын
Awesome video! It only took you 7 minutes 55 seconds to clearly explain this and demonstrate it while it took my university teacher 16 minutes and noone understands. Subscribed :)
@kshitijsinghsomvanshi
@kshitijsinghsomvanshi 3 жыл бұрын
I am just binging on your Java tutorials explanations. They are so well explained esp by taking examples. Loved it.
@hevet
@hevet 3 жыл бұрын
This is my first year studying Java and our teacher is just pushing us a lot with extra curriculum related toJava 8 and design patterns. You're helping me grasp this concept a lot. Thanks!
@BasicGambler
@BasicGambler 4 ай бұрын
For first year it’s too much don’t stress
@faizalimuhammadzoda4731
@faizalimuhammadzoda4731 Жыл бұрын
Thanks for the effort. It helped me a lot in understanding how streams work.
@zendykun1938
@zendykun1938 3 жыл бұрын
Dude! You are UNDERRATED more people should definitely check out your content! Left a sub!
@younghirsch
@younghirsch 3 жыл бұрын
Thank you so much for a clear explanation! Having an exam coming up :)
@KrishnaKumar-jr7qq
@KrishnaKumar-jr7qq 3 жыл бұрын
This is the video which exactly I am looking for .. Thanks man ❤
@realmanting8518
@realmanting8518 Жыл бұрын
great video. need to learn how to do this quickly and this was the fastest one. glad I clicked
@Maveric45
@Maveric45 2 жыл бұрын
Just started using this in my algorithms and now I'm gonna try and go to my old projects and see if I can update the code and clean it up with streams
@tecso2027
@tecso2027 3 жыл бұрын
Thanks for great explanation, great video
@paulocabelloacha4195
@paulocabelloacha4195 2 жыл бұрын
Very useful and helpful, thanks a lot !
@higiniofuentes2551
@higiniofuentes2551 2 ай бұрын
Thank you for this very useful video!
@abhaytiwari6411
@abhaytiwari6411 2 жыл бұрын
Beautiful explanation
@roheeninarayankar8777
@roheeninarayankar8777 3 жыл бұрын
Can u make complete series on java? u r really an amazing teacher!!!!!
@zarlorin3728
@zarlorin3728 3 жыл бұрын
This is a good extra to our lectures at uni
@franzjeffdignos5105
@franzjeffdignos5105 3 жыл бұрын
Hi sir, I love your videos it keeps adding a tools in my toolbox ♥
@rcapilli
@rcapilli 7 ай бұрын
Thanks for this video.
@CHAOSTECH
@CHAOSTECH 4 жыл бұрын
Thanks! Great video!
@musaraza6554
@musaraza6554 3 жыл бұрын
Great explanation. Understood
@achrafmixmix
@achrafmixmix 4 жыл бұрын
well explained, thanks
@-mwolf
@-mwolf 3 жыл бұрын
Thanks, very helpful
@zekymisharky9849
@zekymisharky9849 2 жыл бұрын
Thank you ,its very helpful :)
@tobiaswolf7212
@tobiaswolf7212 3 жыл бұрын
great video, keep it up!
@ariel_alves_dutra
@ariel_alves_dutra 3 жыл бұрын
Great! Thanks
@Jason_Lucero
@Jason_Lucero 3 жыл бұрын
Hey bro, definitely worth a sub. Nice to see someone just be chill and talkin about coding. Even so, you explain better than 99%, keep it up man, I hope all goes well. I'm also a cal poly student!
@andresazuara5665
@andresazuara5665 2 жыл бұрын
What I got from this, is that streams are pretty similar to Linq in C#, Really powerful tool
@cynthiaes89
@cynthiaes89 2 жыл бұрын
Why did I just barely find this!!! 👍👍👍
@Turnpost2552
@Turnpost2552 Жыл бұрын
lol nice and straight to the point practical example 1:10... Reminds me of the NewBoston tutorials lol which is awesome.
@havens1515
@havens1515 4 жыл бұрын
Is there an appreciable performance difference between doing a for loop and using a stream? Obviously there wouldn't be much of a difference in this small example with only 4 items in the list, but is there in larger lists?
@2320Jason
@2320Jason 4 жыл бұрын
Great content as usual! Isn't it the equivalent of map and filters in Python tho?
@aravindmuthu5748
@aravindmuthu5748 3 ай бұрын
As a javascript developer, I find this soothing 😌
@lokesh0000
@lokesh0000 Жыл бұрын
Thank you
@javonfowler9392
@javonfowler9392 2 жыл бұрын
Had to venture into our backend for work and this helped clarify a bunch without having to be the JS guy that knows absolutely no Java.
@mastershonobi110
@mastershonobi110 2 жыл бұрын
Thank You. Nice, short and effective lesson. (I’m a beginner…) lol
@zahrapashayeva2458
@zahrapashayeva2458 11 ай бұрын
You can be a good mentor😊
@devshehan
@devshehan 2 жыл бұрын
Life Saver
@pedroleondebritobarrosodec2043
@pedroleondebritobarrosodec2043 2 ай бұрын
great , thanks
@Programming-Fun-With-Hima
@Programming-Fun-With-Hima 4 жыл бұрын
Thank you so much. What about performance..??!!
@tomino133
@tomino133 4 жыл бұрын
Thanks for the explanation. :-)
@KeepOnCoding
@KeepOnCoding 4 жыл бұрын
You’re welcome!
@theguy12341
@theguy12341 10 ай бұрын
Awesome video
@TinhNguyen-ur8gt
@TinhNguyen-ur8gt 2 жыл бұрын
Greate ! Thank you
@christianrodier3381
@christianrodier3381 2 ай бұрын
That was helpful
@MaryamPrhn
@MaryamPrhn 11 ай бұрын
thanks😍😍
@KeepOnCoding
@KeepOnCoding 4 жыл бұрын
Is this something you would use in your code?
@noypi613
@noypi613 4 жыл бұрын
yup, use them every day at work.
@fontanot
@fontanot 3 жыл бұрын
Starting to learn it from you, seems more logical, thank you for sharing knowledge
@jakes5263
@jakes5263 3 жыл бұрын
I am definitely going to recommend some of your videos to my tutees. I would love to see you cover Lambda functions sometimes.
@faisalalaedin6169
@faisalalaedin6169 4 жыл бұрын
What did you find the best you to amend coding skills?
@Frobinus
@Frobinus Жыл бұрын
So good thanks "le sang"
@tohid6014
@tohid6014 3 жыл бұрын
I wish you to keep on coding
@higiniofuentes2551
@higiniofuentes2551 2 ай бұрын
Altough is interesting, you are limiting the possibility of portability for Java< version 8! And this solution is speeding your program or is only for speeding the new developments? Thank you!
@paulallen4622
@paulallen4622 11 ай бұрын
Great explanation but just wondering why the Person object is set as a static class?
@sofiarothman573
@sofiarothman573 3 жыл бұрын
Love it :)
@rubenvirtic1482
@rubenvirtic1482 4 ай бұрын
What Plug-in do you use for the brackets to light up in a different color only when the cursor is nearby? (I'm using IntelliJ IDEA btw) I have a Plug in named "Rainbow brackets" installed but all the brackets are permanentaly colored which I don't like... Good Video btw, helped me alot!
@hellosagar
@hellosagar 3 жыл бұрын
Dam! this is great
@randomplaces1477
@randomplaces1477 3 жыл бұрын
hey your videos are great to understand the concept .But it will be very help full if you create videos that go on depth
@bertaverges4458
@bertaverges4458 3 жыл бұрын
Ily
@jimjim6699
@jimjim6699 3 жыл бұрын
If your person class is abstract and you have 2 subclases of person and your list is a list of person and you need to check attributes of suclases, how do yo do this?
@kibirigejoshua7913
@kibirigejoshua7913 2 ай бұрын
Genius
@tasheemhargrove9650
@tasheemhargrove9650 3 жыл бұрын
This seems similar to LINQ in C#.
@nazimesari6294
@nazimesari6294 Жыл бұрын
which terminal are you using?
@eo3fc
@eo3fc 2 жыл бұрын
Good introduction and good explanation! What is the shortcut for this kind of block comment (2:57)?
@Joshua-ie1ki
@Joshua-ie1ki 2 жыл бұрын
ctrl + /
@mwatkins0590
@mwatkins0590 3 ай бұрын
I think it is convenient but no so sure about powerful, it doesnt seem to unlock much new functionality so much as it just removes the need for a for loop to be written out - so it can reduce a bit of "boilerplate". However, I think this is very much a double edged sword. I am a rather experienced dev who works with a dev that is rather experienced in another language, and streams have by far been the most obfuscating thing ive seen in our legacy code-bases. The examples provided here are fine, I would even recommend using them, but once you have a chain of like 6-10 in a row, and you are using more complicated things like map flatmap and passing in functions as arguments, it becomes a bit of a readability nightmare, and copy pasting it into chatgpt and asking "rewrite this using loops instead of streams" makes it much much more readable. readability drastically improves the speed at which coders who are unfamiliar with the codebase can work within it, and should not be underestimated.
@ahmadmohamad8416
@ahmadmohamad8416 3 жыл бұрын
iam trying to add the objects from a class to the list by add method just like you did from line 10 to 13 but it wont work
@lampelur5144
@lampelur5144 3 жыл бұрын
Not me watching this during my java exam
@l4m5
@l4m5 3 жыл бұрын
Do a java functional programming ( )-> tutrorial
@romangeneral23
@romangeneral23 4 жыл бұрын
I use something similar in .NET - Linq List
@szvmczek2342
@szvmczek2342 3 ай бұрын
you forgot to say that operations on stream can by only do once, after that stream basically closes and you cant do more operations on that stream
@anonymous_anonymity
@anonymous_anonymity 9 ай бұрын
Nothing more than a syntactic sugar. What do you mean by "powerful"? How powerful is it? Can you quantify? In python world there is map/reduce/filter. They were also sold as "powerful". It is so powerful that people have stopped using them 😅
@SzTz100
@SzTz100 3 жыл бұрын
It's basically LINQ
@HocineFerradj
@HocineFerradj Ай бұрын
Imperative programming VS Declarative programming (stream way )
@learlaamaroq9648
@learlaamaroq9648 3 жыл бұрын
wich IDE is this?
@Cristian-ek7xy
@Cristian-ek7xy 3 жыл бұрын
Looks a lot like c# but more boilerplate code
@arikboga
@arikboga 2 жыл бұрын
What is the shortcut at 2:58
@MrPaulSoscia
@MrPaulSoscia Жыл бұрын
sure you already found this in the comments ctrl + /
@yeshwanthr8616
@yeshwanthr8616 3 жыл бұрын
starts at 00:00:48
@eduardoosuna1995
@eduardoosuna1995 2 жыл бұрын
What IDE are you using?
@MaryamPrhn
@MaryamPrhn 11 ай бұрын
it is Intellij IDEA
@jeffpeng1118
@jeffpeng1118 4 жыл бұрын
so..... java streams are just javascript array operators?
@BrianPondiGeoGeek
@BrianPondiGeoGeek 3 жыл бұрын
Yeap
@jeffpeng1118
@jeffpeng1118 3 жыл бұрын
@@BrianPondiGeoGeek bruh
@anonymous_anonymity
@anonymous_anonymity 9 ай бұрын
5:33 Without streams people.sort(Comparator.comparing(Person:: getName)) You do not even have to collect. So, how come one can say that streams are powerful? Where is the power? I am not against streams. Streams are just a syntactic sugar, a different flavour.
@blasm1713
@blasm1713 2 жыл бұрын
I'm a JS programmer and...you really use for-loops? ...still?
@adewale5689
@adewale5689 2 жыл бұрын
good video, but not really a tutorial for people new to functional programming, it's more like an example of how to use a tiny portion of stream. This video is a bit advanced as it expects you to already know how functional Interface and lambda expressions work.
@yryteny
@yryteny 2 ай бұрын
C:\Program Files\.... Man...
@kitefrog
@kitefrog Жыл бұрын
The background music is annoying ! Does it ever stop?
@Etka06
@Etka06 4 ай бұрын
No
@arkalykakash9475
@arkalykakash9475 4 жыл бұрын
This looks whole lot like JS
@luispfcosta
@luispfcosta 4 жыл бұрын
You are printing person.name You forgot to Print hundredClub
@KeepOnCoding
@KeepOnCoding 4 жыл бұрын
Luis Costa hundredClub.forEach loops through the list and prints out all the names.
@luispfcosta
@luispfcosta 4 жыл бұрын
Keep On Coding yes you are right I did not see that my mistake 😅😁
@maitreeee
@maitreeee 3 жыл бұрын
There is a lot of info about streams, you didn't cover even 20%.
@saurabhsihag2358
@saurabhsihag2358 2 жыл бұрын
Where is Elon Musk?
@robertb5357
@robertb5357 Жыл бұрын
Great explanation. However, the background music is very distracting
@flyko3381
@flyko3381 Жыл бұрын
Trink mal Vitavate
@Bigz006
@Bigz006 5 ай бұрын
you literally haven't explained anything here
@wombozombo
@wombozombo 2 ай бұрын
😢
Java 8 STREAMS Tutorial
18:10
Oggi AI - Artificial Intelligence Today
Рет қаралды 730 М.
Java Streams Tutorial | 2020
19:13
Amigoscode
Рет қаралды 256 М.
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 95 МЛН
Meta Interview Experience 2024 | Software Engineer
9:55
Keep On Coding
Рет қаралды 38 М.
Java Generics Tutorial
12:23
Keep On Coding
Рет қаралды 180 М.
How I Programmed a SaaS (Login, Payments, Cloud Hosting)
9:31
Keep On Coding
Рет қаралды 12 М.
Optionals In Java - Simple Tutorial
15:53
Coding with John
Рет қаралды 200 М.
Java Streams: Beyond The Basics
49:21
Jfokus
Рет қаралды 71 М.
Object Oriented Programming - The Four Pillars of OOP
11:23
Keep On Coding
Рет қаралды 317 М.
Java Streams API Explained (with examples)
18:09
Visual Computer Science
Рет қаралды 3,3 М.
Java serialization 🥣
21:13
Bro Code
Рет қаралды 71 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 757 М.
Stream API in Java
26:04
Telusko
Рет қаралды 282 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,5 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 13 МЛН
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,2 МЛН
Ультрабюджетная игровая мышь? 💀
1:00