28. Streams in Java8 | Collections in Java - Part7
ฝัง
- เผยแพร่เมื่อ 28 ต.ค. 2023
- ➡️ 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
Salute you brother, now I will watch only your videos from now... Too much Deeply with simply explained 😅😅 Real Java Developer ❤
ONE OF THE GREATEST JAVA TEACHER
TRULY GOATED 🛐 THANKS MAN
very helpful..great service for the community.
Man - you are killin' it!
Awesome. You took lot of efforts. Very nice explanation.
Really awsome and helpful content Shrayansh !!!! . Keep up the good work.
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.
Thanks
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.
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.
Solid h boss..super explanation
Awesome bhaiya, pls post more on lld and java related topics
Great video!
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
Such a wounderful explanation..Thank u so much
thanks
very good video Shrayansh on streams
@Conceptandcoding Thanks For making it simple. I hope you will cover where streams is used in different scenarios.
hope you find this video useful, sure will plan for it.
Great explanation
Thanks
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.
Yes, buddy. I will definitely plan for it.
Can you plz give feedback of taking membership of this channel.
Very good explanation of steeam. i have one doubt, what is difference between Function.identity() and (i -> i)
Hi Shreyansh, This is very helpful
can you please help me in understanding what makes a stream lazily evaluated and what is the advantage
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
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 ?
bachpan k Sapna pura ho gaya, streams padrone k. Thank you so much.
How was the video buddy, is stream totally clear
@@ConceptandCoding yes yes.. all clear. Need to implement with day to day coding, I believe that is missing with streams in my case.
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.
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!!
Thanks, Bookmark 01:04:14
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?
Nice point buddy. I will do that for sure
Thanks
thanks for the appreciation
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.
Noted
perfect.
Sir please upload micro services and there implementation
at 19:06 Why are you typecasting inside the filter ((String name)) is this necessary ?
sir some videos of playlist is accessible to members only if it is done by mistake please make it accessible for all please
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();
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?
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!
Try head first Java once.
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
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
Hi Shrayansh, not able to see the full notes from link, please look into it.
It's opening for me, can you please try once again
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?
Pls check the description buddy.
Next topic is Multithreading only
Bro why all the previous videos are "members only" ?
sir , if stream is taking more time than parallelstream then why .....we are not using parallelstream mostly..?
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.
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 ..🙂
Hello Shreyansh, Not able to see the notes from the link. Please look into it. Thanks
These notes can be very important for the revision before interview...
I will check and update the link buddy
pls check now
@@ConceptandCoding Now able to see, Thanks Shreyansh
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
⭐⭐⭐⭐⭐
Note URL in the description not working
Will update the link by tomm
pls check now
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'
Ye video play kyu nhi ho rha
its still in processing seems, wait for some time, its will be available after few minutes.
why lock some streams there's so many free contains available in
sorry did not get it.
Video quality limited to 360 p only
It's processing, in some time it will be available in 4k too, just now upload completed buddy
Please not use dark theam
Thanks