17.12 Java 8 Stream Api Features part 10 stream map reduce methods

preview_player
Показать описание

It keeps the order of the data as it is in the source. Streams

support Aggregate Operations. The common aggregate operations are

filter, map, reduce, find, match, sort.  Java 8 Stream operations has

methods like foreach, map, filter, etc. which internally iterates

through the elements.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

Just love the way you explain. Its very brief and to the point. I've never felt this easy watching other videos on these kind of topics... and more over lengthy videos of topics which we are learning, we lose interest sometimes.

pramilaemani
Автор

Stream Api 8 was very helpful, pls can you make more videos in stream api covering intstream, double stream and also all methods of stream with example in detail. It will be very helpful...Lots of love and thankfulness to telusko

tulsimudaliar
Автор

hello sir i have a doubt...when 2 interfaces have default methods with same name and a classs implementing both interfaces..then we have to override that default method in class...and when doing that getting error like nosuchmethodfound error. After i implemented casting it works..but only getting output of method in the class but not getting interfaces methods output even created different types of objects...so finally doubt is how to get the output of interface methods?

BHARATHISINGARESI
Автор

Good Morning sir,
Thank you for the videos. I have a doubt in this program.

This works:-
-> i*2).reduce(0, (c, e) -> c+e));

but if i do it in the following manner it gives error(is it because stream cannot be used second time and onwards and perhaps it is using more than ones?)

Stream S = values.stream();
System.out.println(S.map(i -> i*2).reduce(0, (c, e) -> c+e));

RahulRajav
Автор

Instead of directly jumping into the program better to give some short introduction on the topic.

traveltalks
Автор

it is not correct to say "create an object of interface" which you keep saying

ankitrawat-acodebreaker
Автор

i don't know why this Video is made ...if you are not explaining anything in the wasted 5 mint.

sadabhasan
Автор

Okay bro, don't fool the people at least.

NaveenMovva