r/learnjava • • Mar 30 '20

Java Lambda expressions

I am a little lost as to what they are, how they work or what I can use them for.

I have no real example, just stumbled across the term and would like to understand it.

Are there understandable easy examples?

Thanks for possible help.

Edit: I found a pretty good explanation here. I just needed a easy and small example to wrap my head around this. Thanks to everyone who tried to help.

41 Upvotes

7 comments sorted by

View all comments

1

u/[deleted] Mar 31 '20

What is your experience level with Java so far? Lambda expressions can be difficult to grasp without some other prior experience (such as with implementing interfaces) and isn't necessary for you to use or understand right away when you are learning Java