28. Streams in Java8 | Collections in Java - Part7

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 97

  • @ashwinajmery6071
    @ashwinajmery6071 7 месяцев назад +17

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

  • @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.

  • @prabhakarmishra1966
    @prabhakarmishra1966 Месяц назад +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 6 месяцев назад +1

    ONE OF THE GREATEST JAVA TEACHER
    TRULY GOATED 🛐 THANKS MAN

  • @amitagarwal779
    @amitagarwal779 5 месяцев назад +4

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

  • @emo182punx
    @emo182punx Месяц назад +1

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

  • @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.

  • @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.

  • @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

  • @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.

  • @Arisha0606
    @Arisha0606 3 месяца назад +1

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

  • @UmeshMane-k7d
    @UmeshMane-k7d 9 месяцев назад +1

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

  • @Explore_with_anish
    @Explore_with_anish 6 месяцев назад +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?

  • @sankalparora9374
    @sankalparora9374 Год назад +1

    Man - you are killin' it!

  • @dhyanendrasinghgurjar4962
    @dhyanendrasinghgurjar4962 День назад

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

  • @MoniHazarika-oc7xs
    @MoniHazarika-oc7xs 5 месяцев назад

    very good video Shrayansh on streams

  • @dhivyaviswanathan7604
    @dhivyaviswanathan7604 9 месяцев назад +1

    Such a wounderful explanation..Thank u so much

  • @naveentmyug
    @naveentmyug 9 месяцев назад

    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

  • @rk123692008
    @rk123692008 5 месяцев назад +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

  • @PhoenixRisingFromAshes471
    @PhoenixRisingFromAshes471 Год назад +1

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

  • @Coding-Just
    @Coding-Just 4 месяца назад +1

    Amazing content and Nice explanation bro thanks a lot

  • @ankitraghav10
    @ankitraghav10 6 месяцев назад +1

    Solid h boss..super explanation

  • @rajkumarvb5197
    @rajkumarvb5197 9 месяцев назад +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

  • @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.

  • @RajnishSingh-y2x
    @RajnishSingh-y2x Год назад +1

    Great explanation

  • @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

  • @umeshrawat5933
    @umeshrawat5933 Месяц назад +1

    Awesome 😊😊

  • @arunkumarrachannavar7776
    @arunkumarrachannavar7776 4 месяца назад +1

    Good job bro

  • @harshitagg
    @harshitagg 4 месяца назад

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

  • @prasad1204
    @prasad1204 5 месяцев назад +1

    Great video!

  • @AmanKumarSamal
    @AmanKumarSamal 2 месяца назад

    Loved it!

  • @poojarath7087
    @poojarath7087 3 месяца назад +1

    Thank u so much sir

  • @aditikaushik68
    @aditikaushik68 Месяц назад +1

    10 and 4 will be the answers for max

  • @indianengineer5802
    @indianengineer5802 8 месяцев назад

    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 ?

  • @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!

  • @naveentmyug
    @naveentmyug 9 месяцев назад

    Thanks

  • @ranaprathap-gn7so
    @ranaprathap-gn7so Год назад +1

    Sir please upload micro services and there implementation

  • @athul03
    @athul03 6 месяцев назад

    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();

  • @shriharikulkarni3986
    @shriharikulkarni3986 6 месяцев назад +1

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

    • @girishanker3796
      @girishanker3796 4 месяца назад

      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.

  • @Asus877
    @Asus877 5 месяцев назад

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

  • @gyandeepdigra8461
    @gyandeepdigra8461 10 месяцев назад +1

    perfect.

  • @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

  • @asifkaif356
    @asifkaif356 6 месяцев назад

    Thanks

  • @balaguravaiahparimi2094
    @balaguravaiahparimi2094 2 месяца назад

    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 2 месяца назад

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

  • @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.

  • @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

  • @world4376
    @world4376 6 месяцев назад

    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 ..🙂

  • @bhaktishah3943
    @bhaktishah3943 Год назад

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

  • @omkarshendge5438
    @omkarshendge5438 5 месяцев назад

    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?

  • @richard_levi17916
    @richard_levi17916 Год назад

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

  • @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.

  • @sudhakarrathaur4834
    @sudhakarrathaur4834 Год назад

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

  • @shriharikulkarni3986
    @shriharikulkarni3986 6 месяцев назад

    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 4 месяца назад

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

  • @imrankhurshid1960
    @imrankhurshid1960 Год назад

    Note URL in the description not working

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 Год назад

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

  • @Raghuvamshi-um8oq
    @Raghuvamshi-um8oq 5 месяцев назад +1

    ⭐⭐⭐⭐⭐

  • @ishank9082
    @ishank9082 4 месяца назад

    Can't access the notes .

    • @ConceptandCoding
      @ConceptandCoding  4 месяца назад

      hi, notes link i have shared in member community section

  • @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

  • @shriharikulkarni3986
    @shriharikulkarni3986 6 месяцев назад

    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'

  • @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.

  • @atharvakusumbia
    @atharvakusumbia 3 месяца назад

    😂😂Collection of data or data 1:51

  • @Abhishek-df5tf
    @Abhishek-df5tf 8 месяцев назад +4

    Please not use dark theam

  • @ronitkulkarni-jj4mb
    @ronitkulkarni-jj4mb Месяц назад

    Seriously keep background screen theme white not black