28. Streams in Java8 | Collections in Java - Part7

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • ➡️ Notes: Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)
    ➡️ Join this channel to get access to member only perks:
    / @conceptandcoding

КОМЕНТАРІ • 107

  • @TheSatishPatel
    @TheSatishPatel 25 днів тому +5

    This is hands down the best Java playlist I've watched in the last 10 years! The clarity, depth, and practical insights it offers are unmatched. I genuinely believe this could be a game-changer for anyone aspiring to master Java. It would be a truly generous act of kindness to make this playlist freely accessible, enabling countless learners to benefit from its brilliance. Thank you for creating such an incredible resource!

  • @karmicveda9648
    @karmicveda9648 Рік тому +12

    Out of all the tech channels I follow, this is the only channel where I provide comments. You're content is always in depth and easy to consume. I can understand you put lot of efforts to get here.
    Request to please see if possible you can allow all to watch your videos and not just the Members. Thank you once again for sharing your knowledge.

  • @ashwinajmery6071
    @ashwinajmery6071 9 місяців тому +18

    Salute you brother, now I will watch only your videos from now... Too much Deeply with simply explained 😅😅 Real Java Developer ❤

  • @shantahiremath7313
    @shantahiremath7313 Місяць тому +1

    I have watched so many videos on this, but nowhere did I understand. Because of you, sir, I understood it very clearly. Thank you so much for your clear, easy-to-understand teaching.

  • @bhuvanakuppusamy6933
    @bhuvanakuppusamy6933 Місяць тому +1

    Those who are looking for a good video on Streams, you can go ahead with this for sure. Excellent explanation with examples in detail. Appreciate your efforts, Shrayansh😊

  • @prabhakarmishra1966
    @prabhakarmishra1966 4 місяці тому +1

    Today I got clarity on stream just because of this videos, literally saw a very first videos of yours and also planning to watch other, really very informative and beginner friendly, Hats off, Keep it up 🙏🙏

  • @in_tyler_we_trust
    @in_tyler_we_trust 8 місяців тому +1

    ONE OF THE GREATEST JAVA TEACHER
    TRULY GOATED 🛐 THANKS MAN

  • @amitagarwal779
    @amitagarwal779 8 місяців тому +4

    Really awsome and helpful content Shrayansh !!!! . Keep up the good work.

  • @krishnendughosh2368
    @krishnendughosh2368 Рік тому +4

    25:06 here in the the map() method we pare passing a function where Stream is the type it is getting and Stream is the return type.
    but in the body of the map function we are mentioning only type
    ** Stream map(Function

  • @sumitroy7817
    @sumitroy7817 Рік тому +1

    bachpan k Sapna pura ho gaya, streams padrone k. Thank you so much.

    • @ConceptandCoding
      @ConceptandCoding  Рік тому

      How was the video buddy, is stream totally clear

    • @sumitroy7817
      @sumitroy7817 Рік тому

      @@ConceptandCoding yes yes.. all clear. Need to implement with day to day coding, I believe that is missing with streams in my case.

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +1

      cool, whenever you try to use for loop, change it with streams, it will help you to get some hands on experience with streams quickly.

  • @zaheerabass7955
    @zaheerabass7955 Рік тому

    I knew before that only you can make justice to streams explanation and you did in a style!. Very much clear. Now I can start implementing with full confidence in my daily work. Thank You So much. Hope same from the multithreading explanation.

    • @ConceptandCoding
      @ConceptandCoding  Рік тому

      Thanks buddy, it's was a huge topic and lot of pre work done to make sure that it's understood in a correct way.
      Thanks for the feedback, means lot to me.

  • @AJ-fb9pk
    @AJ-fb9pk Рік тому +1

    I have to say, summarising java streams topic in an hour is pretty hard. This is impressive.
    I hope you do a dedicated video where streams is used in different scenarios/questions. Learning with more real life examples would be really helpful.

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +1

      Yes, buddy. I will definitely plan for it.

    • @anthonya880
      @anthonya880 Рік тому

      Can you plz give feedback of taking membership of this channel.

  • @asifkaif356
    @asifkaif356 9 місяців тому

    Thanks

  • @emo182punx
    @emo182punx 3 місяці тому +1

    Very informative and explained in an understanding way. Thank you.

  • @UmeshMane-k7d
    @UmeshMane-k7d 11 місяців тому +1

    Awesome. You took lot of efforts. Very nice explanation.

  • @sankalparora9374
    @sankalparora9374 Рік тому +1

    Man - you are killin' it!

  • @chaitanyaguptahere
    @chaitanyaguptahere Місяць тому +1

    Thank you! You made it very easy.

  • @Shivakumar-nl2wt
    @Shivakumar-nl2wt 2 місяці тому +1

    Your a Legend 🎉❤

  • @Arisha0606
    @Arisha0606 6 місяців тому +1

    Thank you so much sir, easy to understand and remember how to use Java 8 functions.

  • @Explore_with_anish
    @Explore_with_anish 8 місяців тому +1

    very helpful..great service for the community.

  • @ashishjaiswal4207
    @ashishjaiswal4207 Рік тому +1

    You have explained the topic in a simple and clear way. We have no difficulty in understanding it, but I have one suggestion for you. Before you start the topic, can you make us curious about why it is important?

  • @umeshrawat5933
    @umeshrawat5933 4 місяці тому +1

    Awesome 😊😊

  • @ankitraghav10
    @ankitraghav10 8 місяців тому +1

    Solid h boss..super explanation

  • @dhivyaviswanathan7604
    @dhivyaviswanathan7604 Рік тому +1

    Such a wounderful explanation..Thank u so much

  • @MoniHazarika-oc7xs
    @MoniHazarika-oc7xs 7 місяців тому

    very good video Shrayansh on streams

  • @Coding-Just
    @Coding-Just 7 місяців тому +1

    Amazing content and Nice explanation bro thanks a lot

  • @prasad1204
    @prasad1204 8 місяців тому +1

    Great video!

  • @PhoenixRisingFromAshes471
    @PhoenixRisingFromAshes471 Рік тому +1

    Awesome bhaiya, pls post more on lld and java related topics

  • @dhyanendrasinghgurjar4962
    @dhyanendrasinghgurjar4962 2 місяці тому

    It would be more useful if you could share real-life use cases of how these intermediate filters can be applied.

  • @indianengineer5802
    @indianengineer5802 11 місяців тому

    30:58 , why we are not using terminal operation in this case of flatmap. Is it like we are just making stream but not making final transformed output from it ?

  • @AmanKumarSamal
    @AmanKumarSamal 5 місяців тому

    Loved it!

  • @arunkumarrachannavar7776
    @arunkumarrachannavar7776 6 місяців тому +1

    Good job bro

  • @naveentmyug
    @naveentmyug Рік тому

    In college, I was only to the basics or mere of it. But now I am much confident of my skills. Kha they sir ap

  • @RajnishSingh-y2x
    @RajnishSingh-y2x Рік тому +1

    Great explanation

  • @ashishchoksi8501
    @ashishchoksi8501 Рік тому

    Hi shreyansh,
    great explanation!!
    I have some adhoc request that I found difficult to understand.
    1. java date - hell lot of classes present to get current date with some format.
    2. how exactly synchronization works what to put in synchronization(something) want to get into deeper.
    3. what is exactly mean of java equals() & hashcode() why these exists and its internals.
    4. java file - standard way to read/write files and I think there are 2 version of it java.file & nio.file
    Please also plan to make depth video on these things and also let us know if there are good articles we can read about it.

  • @nitishgoyal9910
    @nitishgoyal9910 Рік тому

    Hi Shreyansh, This is very helpful
    can you please help me in understanding what makes a stream lazily evaluated and what is the advantage

  • @rajkumarvb5197
    @rajkumarvb5197 Рік тому +1

    Hi Shreyansh, one suggestion you could have not included the data type of parameter. That would have been still concise.
    Anyway great video, thank you!!

  • @vipulkumar6082
    @vipulkumar6082 Рік тому +1

    Thanks, Bookmark 01:04:14

  • @athul03
    @athul03 9 місяців тому

    12:28
    Is there any benefits to mention the data type of current stream variable?
    salaryList.stream().filter((Integer sal)->sal>3000).count();
    or can we simply do this?
    salaryList.stream().filter(e->e>3000).count();

  • @harshitagg
    @harshitagg 7 місяців тому

    Very good explanation of steeam. i have one doubt, what is difference between Function.identity() and (i -> i)

  • @shriharikulkarni3986
    @shriharikulkarni3986 9 місяців тому +1

    at 19:06 Why are you typecasting inside the filter ((String name)) is this necessary ?

    • @girishanker3796
      @girishanker3796 6 місяців тому

      It is optional. But better to do it as the filter takes a predicate of Generic type()so when we say (String name) so T is now strictly of type String and cannot accept any other data Types as input. It is not type casting it is defining the variable type inside a lambda expression.

  • @poojarath7087
    @poojarath7087 6 місяців тому +1

    Thank u so much sir

  • @MallikarjunaRaoMannam
    @MallikarjunaRaoMannam 2 місяці тому

    I purchased from Udemy, but materials not allowed to download from Udemy, is there any possibility to download the content?

  • @Asus877
    @Asus877 7 місяців тому

    sir some videos of playlist is accessible to members only if it is done by mistake please make it accessible for all please

  • @shriharikulkarni3986
    @shriharikulkarni3986 9 місяців тому

    at 14:45 -> I tried Stream arrStream = Arrays.stream(arr); in intellij, its showing Incompatible types. Found: 'java.util.stream.IntStream', required: 'java.util.stream.Stream',
    when i typecast it like Stream arrStream = (Stream) Arrays.stream(arr); its compiling fine, but failing at the runtime saying
    java: incompatible types: java.util.stream.IntStream cannot be converted to java.util.stream.Stream
    Can you please explain @Shreyansh

    • @girishanker3796
      @girishanker3796 6 місяців тому

      Did you use int arr[ ] instead of Integer arr[ ]

  • @balaguravaiahparimi2094
    @balaguravaiahparimi2094 4 місяці тому

    What are all the other methods we have similar to peek... Like i just want to know what are the methods which wont invoke till full stream availability?

    • @dep2460
      @dep2460 4 місяці тому

      none of the intermediate methods will be called until the ternary method is invoked

  • @ranaprathap-gn7so
    @ranaprathap-gn7so Рік тому +1

    Sir please upload micro services and there implementation

  • @meranaamtanish
    @meranaamtanish Рік тому

    Can you provide drive link or something for all the codes and notes of all videos and topics, it will save a lot of time. Also when we can expect multithreading video?

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +1

      Pls check the description buddy.
      Next topic is Multithreading only

  • @omkarshendge5438
    @omkarshendge5438 7 місяців тому

    i did not get this
    just because the order of stream elements is in decreasing order how come the minimum element is 10 out of 10 7 4?
    im confused af rn!
    val1-val2 is the increasing order and val2-val1 is the decreasing order right?
    so the min should stay the same right or is there a typo? shrayansh bro do u mean it is max?

  • @rk123692008
    @rk123692008 7 місяців тому +4

    Ways to create stream
    list.stream()
    Arrays.stream()
    Stream.of()
    Stream.Builder svr = Stream.builder(); svr.build();
    Stream.iterate(start, incrementBy).limit(size);
    Intetmediate operators
    filter
    map
    flatMap
    distinct
    peek
    sorted
    limit
    skip
    mapToInt
    mapToLong
    mapToDouble
    Terminal Operations
    collect
    reduce
    forEach
    toArray
    min
    max
    count
    anyMatch
    allMatch
    noneMatch
    findFirst
    findAny

  • @abc-ym4zs
    @abc-ym4zs Рік тому

    Sir i want your suggestion
    I am in third year i dont have much friends i came to engineering college which is very far from my city day by day Acdemic pressure not able concentrate on studies and placments in these college are not so good i am not able to learn new skill now what should i do dialy i am getting thinking too much and getting tension about future not able to think about present what

  • @SimranSrivastava-oi9rd
    @SimranSrivastava-oi9rd Рік тому

    Hey Shrayansh, for Java 8, multithreading in java, i want to go through indepth for internals etc. Can you suggest any good books, articles or any other alternative for the same, though your videos are gem!

  • @rr45creation86
    @rr45creation86 Рік тому

    sir , if stream is taking more time than parallelstream then why .....we are not using parallelstream mostly..?

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +2

      it is faster, but with parallel processing many other complexity comes into the picture like thread safety and Complexity.
      so use it when really need it.

  • @bhaktishah3943
    @bhaktishah3943 Рік тому

    Hi Shrayansh, not able to see the full notes from link, please look into it.

  • @richard_levi17916
    @richard_levi17916 Рік тому

    Bro why all the previous videos are "members only" ?

  • @sudhakarrathaur4834
    @sudhakarrathaur4834 Рік тому

    Hello Shreyansh, Not able to see the notes from the link. Please look into it. Thanks

  • @gyandeepdigra8461
    @gyandeepdigra8461 Рік тому +1

    perfect.

  • @aditikaushik68
    @aditikaushik68 4 місяці тому +1

    10 and 4 will be the answers for max

  • @naveentmyug
    @naveentmyug Рік тому

    Thanks

  • @imrankhurshid1960
    @imrankhurshid1960 Рік тому

    Note URL in the description not working

  • @world4376
    @world4376 9 місяців тому

    Most of the videos are not locked I know you have worked hard for creating the playlist but most of people leave the playlist in between since most of the videos are locked. May be future if you thinks please unlock it ..🙂

  • @MallikarjunaRaoMannam
    @MallikarjunaRaoMannam 2 місяці тому

    how to pay through paytm/phonepay?

  • @Sanjeev.Network
    @Sanjeev.Network Рік тому

    @Conceptandcoding Thanks For making it simple. I hope you will cover where streams is used in different scenarios.

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +1

      hope you find this video useful, sure will plan for it.

  • @Raghuvamshi-um8oq
    @Raghuvamshi-um8oq 8 місяців тому +1

    ⭐⭐⭐⭐⭐

  • @ishank9082
    @ishank9082 6 місяців тому

    Can't access the notes .

    • @ConceptandCoding
      @ConceptandCoding  6 місяців тому

      hi, notes link i have shared in member community section

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 Рік тому

    why lock some streams there's so many free contains available in

  • @atharvakusumbia
    @atharvakusumbia 6 місяців тому

    😂😂Collection of data or data 1:51

  • @ayushkansal6161
    @ayushkansal6161 Рік тому

    Ye video play kyu nhi ho rha

    • @ConceptandCoding
      @ConceptandCoding  Рік тому

      its still in processing seems, wait for some time, its will be available after few minutes.

  • @shriharikulkarni3986
    @shriharikulkarni3986 9 місяців тому

    Stream.Builder streamBuilder = Stream.builder()
    .add(1000)
    .add(2000)
    .add(3000);
    this is giving me Incompatible types. Found: 'java.util.stream.Stream.Builder', required: 'java.util.stream.Stream.Builder'

  • @imrankhurshid1960
    @imrankhurshid1960 Рік тому

    Video quality limited to 360 p only

    • @ConceptandCoding
      @ConceptandCoding  Рік тому +1

      It's processing, in some time it will be available in 4k too, just now upload completed buddy

  • @Abhishek-df5tf
    @Abhishek-df5tf 10 місяців тому +4

    Please not use dark theam

  • @ronitkulkarni-jj4mb
    @ronitkulkarni-jj4mb 3 місяці тому

    Seriously keep background screen theme white not black