Java 8 Lambda Basics 22 - The foreach iteration

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

Functional programming enables us to write 'internal' iterations instead of 'external' iterations. Let's understand the difference and use the new for-each method for iterating collections.
Рекомендации по теме
Комментарии
Автор

This is the most elegant way to teach "lamdas", I came across on internet so far. You are really an awesome tutor and most importantly providing all this highly paid skills for free!! This note is a means to show my gratitude towards your effort and ethical maturity.

Is it possible in the near future to provide us an advanced tutorial on "lamdas" soon!! I would greatly appreciate it!!

asmsarwarzahan
Автор

This was the best course for lambda's I've taken so far. I love how you make things simple and straight forward, and so elegantly explained. Thank you.

thegrimreaper
Автор

That's it.. i can't hold it anymore. I'm buying all the courses on your website. Gonna do the whole Java Learning Path. You're such a great professional at teaching, so concerned and caring about everything you say, and the way you express your knowledge that it makes learning very fluid and easy.

OKelvinClark
Автор

Sir, you are a Mythical boon for the entire Java community. Hats off on how they way you teach. Exquisite!!

ghufrankhan
Автор

trust me sir, you are a true genius. You teach and explain very well to audience.

dipakgupta
Автор

great skills of teaching. U explained it like a cake walk...

sudhanshukumar
Автор

Excellent, you teach very simple and understandable!

GermainSanchezMatus
Автор

great explanation!!!! I was so lost on this. thank you very much

jamesarden
Автор

Hello Thank you .As per your Explanation when you don't bother about order in which each elements executes inside a collection We use forEach method. But forEach method internal implementation is again an for in loop itself. So again it keeps track of order right ???

karthikhr
Автор

Guruji, you are a gem. Thats all im gonna say!

shreeram_kulkarni
Автор

Great video, this is helping me alot. Thank you!

Zjoewagtuh
Автор

but the "for in" loop from the syntax also can assume to be equivalent to forEach construct.

LeeHongYee
Автор

excellent tutorial .. also forEach reminds me javascript :)

chilipeppero
Автор

I have one question here . So as I understand now, lambda is excuted once we call interface.method(), but in case of foreach, the given lambda is executed directlly without calling the consumer.accept( ) explicitly ? who is responsible for calling this method in this case?

asawari
Автор

I think the parallelism that is implied here is SIMD sort of stuff, not the spawning of new threads.

ShoaibKhanZ
Автор

Hi Kaushik ..My suggestion is to increase the font size when ever you are opening your editor for a demo.

abhilashkokkonda
Автор

I am not able to understand the method referance!

jatinsharma
Автор

someone help me out!!! on line no 31 how the JVM came to know that the p is of type person??

prashantaarya
Автор

Why u mentioned as for in loop ? all time i heard like for each in java.

feel_the_love