Java Streams Tutorial | 2020

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Java Streams allows you work with Collections/Lists like never before. In the good old days we use to define every single step (code) what we wanted to accomplish, we used to write a lot of code for something very small (The Imperative approach).
    What Java Streams makes it easy to work with Collections and it gives you as a developer an API where you can ask what you want instead of defining the full implementation for the thing you want. (Declarative Programming)
    If you not using Java Streams 😱 then you should take a moment and watch this video to learn more about it.
    Here are some resources
    Code: github.com/amigoscode/java-st...
    Free Course: bit.ly/2WxbPjI
    PS:
    Subscribe to my channel: / amigoscode
    Follow on Instagram: / amigoscode
    Happy coding 👊🏾

Komentáře • 305

  • @florianseidel8574
    @florianseidel8574 Před 4 lety +27

    thank you for your work, Nelson. really appreciate it.

  • @desarrollojava
    @desarrollojava Před 3 lety +33

    This is the best explanation I've ever heard. You have teaching talent man. Thank you.

  • @FukSN
    @FukSN Před 2 lety

    Thanks Nelson.
    Just learning Java for my job and I work with Collections/Lists a lot so this is super helpful.

  • @ibrahimgunduz34
    @ibrahimgunduz34 Před 3 lety +59

    I just met your youtube channel while searching for something regarding spring security but after that, I watched some of your other videos as well. They are definitely awesome. Thanks for your work.

  • @martinguerra2142
    @martinguerra2142 Před 3 lety +1

    Thank you Nelson, always helping the community!

  • @peytonpeck
    @peytonpeck Před 4 lety +8

    I was looking for a good video explaining/showing some methods in #stream(), and this was just awesome. 10/10 good job!

  • @cod3rhandl3it
    @cod3rhandl3it Před rokem +1

    Articulate, informative, and succinct - WELL DONE and THANK YOU!

  • @josephthecreator
    @josephthecreator Před 2 lety +1

    Extremely helpful. Stream APIs are so powerful, thank you for breaking this down!

  • @suwatchainanchai6637
    @suwatchainanchai6637 Před 3 lety

    Thank you so much for your tutorial. It help me reduce a lot of code line from doing imperative approach.

  • @damahelouni2720
    @damahelouni2720 Před 3 lety +3

    Wow, thank you very much. You explain so well and easy to understand. Greetings from Germany 👍🏼

  • @barryalpha4484
    @barryalpha4484 Před 3 lety

    This is the best explanation that i have ever had. thank you a lot guy for this beautifull job.

  • @jakovkusic4219
    @jakovkusic4219 Před 2 lety

    Definitely the best video about streams on CZcams.

  • @damdl96
    @damdl96 Před 5 lety +10

    Easy to understand and great explanation, thank you!

  • @mertyertugrul
    @mertyertugrul Před 4 lety +13

    I watch this so many times, thank you Nelson.

    • @user-fz1nh3mt1c
      @user-fz1nh3mt1c Před 3 lety

      so many times? sounds like Nelson awfully explained streams and you have to watch again and again to understand =) i'm joking. Nelson, great job!

    • @mertyertugrul
      @mertyertugrul Před 3 lety

      @@user-fz1nh3mt1c No I just keep forgetting it 🙃

  • @juzerkhambati5068
    @juzerkhambati5068 Před 3 lety

    Hi, You really explain so well. Really appreciate it. Thank you

  • @ankit-jangid
    @ankit-jangid Před rokem

    Explained very simply and cleared doubts. Thank you so much Amigoscode :)

  • @angecarmelyoro6321
    @angecarmelyoro6321 Před 2 lety

    What a masterclass. Thank you Nelson

  • @abhijeetprabhu4117
    @abhijeetprabhu4117 Před 4 lety

    Followed you from your FCC video on Spring. Thank you for such an informative session! Subbed

  • @prakhar.odyssey
    @prakhar.odyssey Před 2 lety

    Thank you for this amazing explanation brother! 😄🙌🏾

  • @mingyungkim3680
    @mingyungkim3680 Před rokem

    I’m really happy to watch this video. I understood ‘streams’ perfectly that made me annoying. thank u

  • @andrews1318
    @andrews1318 Před 2 lety

    Thanks Nelson, I'm appreciate this vids, because when I finished my formation course just learn the base.

  • @fredericochopin
    @fredericochopin Před 3 lety +1

    Nelson, this is great stuff! Thank you.

  • @abrehamish
    @abrehamish Před 3 lety +3

    Thank you Nelson for excellent expalnation.

  • @carlozuk
    @carlozuk Před 3 lety

    Amazing video, can't wait to take the course

  • @brunocardoso8246
    @brunocardoso8246 Před 4 lety +2

    Appreciate simple and structured explanation. Thank you !

  • @sumanthmuttuvalli4931
    @sumanthmuttuvalli4931 Před 3 lety

    Thank You, Nelson. Your videos are very helpful to me.

  • @teofilomassinga7528
    @teofilomassinga7528 Před 3 lety

    Thanks, Nelson
    you are a wonderful teacher.

  • @DEVKA777
    @DEVKA777 Před 3 lety

    thank you for your work! so cool and understandably

  • @simranpreetkaur7840
    @simranpreetkaur7840 Před rokem

    Great content, well structure and quality content. Keep posting :)

  • @K.E.N.J.I.B.A.B.Y
    @K.E.N.J.I.B.A.B.Y Před 2 lety +1

    This was very infomative! I followed along with my own custom made class and I learned a ton! Thanks a million!

  • @kihunkim7498
    @kihunkim7498 Před 3 lety

    very useful video and simply explained. Thank you so much bro!!

  • @dmytrog6127
    @dmytrog6127 Před 4 lety

    Thank you! Very clear, very understandable, very comprehendly

  • @Metachief_X
    @Metachief_X Před 3 lety

    this is amazing, thank you so much!

  • @juanignaciorios4513
    @juanignaciorios4513 Před 3 lety +1

    Eres un crack!! Thanks and greetings from Argentina🇦🇷

  • @vitorgsevero
    @vitorgsevero Před 2 lety

    Great explanation! Thank you so much!

  • @Netalon
    @Netalon Před 3 lety

    Thank you Bro ! Finally i learned streams in Java

  • @lifeTechnicolorGuy
    @lifeTechnicolorGuy Před 4 lety +1

    Great tutorial ! I will do the course for sure.

  • @Hianfita
    @Hianfita Před 7 měsíci

    Excellent video, stream really are insane! Your explanation was mighty understandable. Valeu amigo

  • @trenvert123
    @trenvert123 Před 22 hodinami

    I'm glad your tutorials improved over the years. At least for the Spring Boot tutorial. Because this was rough.

  • @FP_95
    @FP_95 Před rokem

    Thanks man! Your content is AWESOME! Cheers! :)

  • @TheN0odles
    @TheN0odles Před 3 lety

    Hey bro, grettings from Johannesburg. Good work, man!

  • @anantpillai4656
    @anantpillai4656 Před 5 lety +3

    Seriously well explained!!

  • @russellskalden8064
    @russellskalden8064 Před 4 lety

    Like your lessons, keep going 👍

  • @tshepo2japhta28
    @tshepo2japhta28 Před 4 lety +1

    Man you inspire me ...keep them coming

  • @Jody-nf2bz
    @Jody-nf2bz Před rokem

    Excellent class. Thank you!

  • @DiegoOliveiraProf
    @DiegoOliveiraProf Před 3 lety

    thanks, this is a very good tutorial!

  • @MCBarracudo
    @MCBarracudo Před 3 lety

    Great tutorial. Thank you !

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 Před 5 měsíci

    Thank you! Very very helpful! 💛

  • @mkli3459
    @mkli3459 Před 3 měsíci

    This is very very wonderful! Thanks a lot! 👏

  • @foleyjack
    @foleyjack Před 4 lety +1

    Very well explained, good tutorial, thank you

  • @gurushashank7863
    @gurushashank7863 Před rokem

    Thank you, Helped me a lot 😃

  • @tvrecorder4791
    @tvrecorder4791 Před 3 lety

    Keep up the good work mate

  • @peasantfolkhero
    @peasantfolkhero Před 10 měsíci

    You have my thanks, you are doing this very well.

  • @eddiemarxmallmaalvarez1134

    I'm Latinoamerican and could say that Great video man, it's awesome!!

  • @BluePhoenixGames1
    @BluePhoenixGames1 Před 5 lety +4

    Well explained, thanks!

  • @fabiovictorino350
    @fabiovictorino350 Před 9 měsíci

    It's was amazing. I love so much yours videos.

  • @michapusio9523
    @michapusio9523 Před 5 lety +3

    Good work, keep going that! :D

  • @ahmedzidane6203
    @ahmedzidane6203 Před 3 lety

    thank you for your work my bro.

  • @aveshkadri
    @aveshkadri Před 3 lety

    thanks amigo, very well explained

  • @andreas-fefe
    @andreas-fefe Před 2 lety

    Hello Neloson thanks for your interesting and well explained concepts. please would like to know how to come out with printing only one property of the person after sorting.

  • @cxrealzim8762
    @cxrealzim8762 Před 3 lety

    Great content mate.

  • @MrZbieg1422
    @MrZbieg1422 Před rokem

    Thanks dude. You just saved me some time :D

  • @608raju
    @608raju Před 4 lety

    the way you explained is clear. good luck

  • @PhanTanThangTH
    @PhanTanThangTH Před rokem

    Thank you so much bro, keep it up :)

  • @mirakhmadov
    @mirakhmadov Před 2 lety +1

    Thank you
    You are good at teaching

  • @hasangunes9464
    @hasangunes9464 Před 4 lety +2

    It's 2020 and I still write code like this. FeelsBadMan

  • @ainbrisk545
    @ainbrisk545 Před 11 měsíci

    thank you! very insightful

  • @jopadjr
    @jopadjr Před 2 lety

    Thanks mate for the tutorial...

  • @sudheerchalla1453
    @sudheerchalla1453 Před 5 lety

    Very well explained. Great job

  • @luisdfernandez2601
    @luisdfernandez2601 Před 4 lety

    Nicely explained. Nice work!

  • @DarrelDavis
    @DarrelDavis Před 4 lety

    Great explanation. Thanks much.

  • @Pothanenos
    @Pothanenos Před 4 lety

    Thanks for the tutorial, it is concise and well structured. What about the performance of this method compared to the imperative approach?

  • @marcincylkowski3004
    @marcincylkowski3004 Před 3 lety

    Very good video! It is really helpfull

  • @BrilliantMindsZw
    @BrilliantMindsZw Před rokem

    quite clear and understandable

  • @DaRolla2016
    @DaRolla2016 Před 4 lety +3

    Hi Nelson, thanks for this. Can you please explain how to get images into your comments? Like // Imperative approach ❌ and // Declarative approach ✅ ? My IDE does not show them right like the Github Webpage does. But in your video your IntelliJ did ?!

  • @andresencolombia
    @andresencolombia Před 2 lety

    Great job Amigo.

  • @PapaSmurff660
    @PapaSmurff660 Před 4 lety

    how would you change min/max if you are working with a generic type? in this case you don't have access to something like the getAge method

  • @EmanAl-Murish
    @EmanAl-Murish Před rokem

    Woow, thank u so much for this Amazing video

  • @houariboumediane3536
    @houariboumediane3536 Před 3 měsíci

    That was good man...thanks.

  • @coelho8276
    @coelho8276 Před 3 lety

    best video for java streams

  • @study-channel6301
    @study-channel6301 Před 3 lety +1

    Please, make a video on Map vs FlatMap. Thank you!

  • @vpenywise
    @vpenywise Před 2 lety +2

    4:19 - doesn't appear to be free anymore, but then again, I'm a few years late watching the video :D Thanks for the content nonetheless! I will also check your website and courses for sure!

  • @moodydog9960
    @moodydog9960 Před 2 lety +16

    I think with the getAge and getGender in the sort expression, you need to flip getAge and getGender, i.e, do sort by gender first, then by age.

  • @user-mn3iq2cs9n
    @user-mn3iq2cs9n Před 4 lety +1

    I had to switch my language level in IntelliJ to Java 9. I have Java 13 installed as of 2019. Is List.of method going bye bye?

  • @johncerpa3782
    @johncerpa3782 Před 3 lety

    Great video!

  • @aobaidi5626
    @aobaidi5626 Před 2 lety

    The best, brother

  • @mnarayanan5363
    @mnarayanan5363 Před 2 lety

    This is good content. Thanks

  • @TinyEarthling
    @TinyEarthling Před 3 lety

    Thank you, Sir!

  • @prashantvaghela3337
    @prashantvaghela3337 Před 2 lety

    Thank you for this amazing video on Streams in Java. I would like to know your learning approach to new concepts. How do you learn about all these concepts? What's the secret recipe?

    • @techBuffy
      @techBuffy Před rokem

      Buy a book and study.. There is no magic recipe for building concepts.. Free Videos have limitations

  • @simpleandminimalmaybe

    thank you so much for the brilliant tutorial. may i ask....., are you typing the shortcuts yourself or it is IntelliJ IDEA doing this. I am writing them down by the way for ease of reference. thank you for the effort you put into these tutorials.

  • @CheeseStickzZ
    @CheeseStickzZ Před rokem +4

    Nice explanation. But there's nothing wrong with using if ( multiple conditions ) it's actually faster in most cases

    • @Alex-to5vx
      @Alex-to5vx Před rokem

      using if statements to make decisions are fine if its a truly binary decision, like if a function is passed a Boolean you can use an if statement because that Boolean value can only ever be one of the other. The functionality is predictable and expandable. However if you are using if statements to make decisions that are more complex all of a sudden you have code that is much less maintainable and prone to errors with any future modifications to the code or requirements of said code. Defining decisions through dynamic dispatch is the proper way of making decisions nowadays even if it is slower because it allows the code to be robust across time.

  • @senss3000
    @senss3000 Před 2 lety

    awesome bro thnks ! we want more

  • @vancuong8418
    @vancuong8418 Před 3 lety

    Really helpful thanks

  • @adamfaisal1750
    @adamfaisal1750 Před 2 lety

    Many Thanks Dear Nelson

  • @MatheusSilva-gx8sj
    @MatheusSilva-gx8sj Před 4 lety +1

    Nice content! Thank you!

  • @Cavdar2012
    @Cavdar2012 Před 2 lety

    excellent! thanks a lot.

  • @surajdas_31
    @surajdas_31 Před 4 lety

    Nice explained,
    by the way thank you.

  • @user-jj9sx6hh7h
    @user-jj9sx6hh7h Před rokem

    I see this all over the place in Java world but, why not splitting those chains in methods with proper names to improve readability? I think that would make Martin Fowler happy 😄
    Thanks for the great explanation!

  • @ShaileshDagar
    @ShaileshDagar Před rokem

    Thanks, man!

  • @ajitdas4515
    @ajitdas4515 Před 2 lety

    Awesome. Thanks