Forums Register Login

Lay term: what is lambda expression?

+Pie Number of slices to send: Send
 

"The ox is slow and the earth is patient."



(My self an ox. )

If possible, in lay term, what is lamda expression? Thanks.
1
+Pie Number of slices to send: Send
It is spelt lambda, and is too big to explain in a thread. Try the Java Tutorials, JavaWorld, Java TechNet and Wikipedia.
+Pie Number of slices to send: Send
 

Tell me and I'll forget; show me and I may remember; involve me and I'll understand.



Back to the future:

I used Spring 4 and STS IDE that support JDK 8.

See Code 1 (Interface). I re-write the Code 2 using lambda. See Code 3.

I try to remove ResultSet from below code to have the compile infer, but tool complain: (why?)

return jdbcTemplate.query(sql, (rs) ->





Quick! Before anybody notices! Cover it up with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2966 times.
Similar Threads
want to clarify some of my understandings on BDM
Populate a date field in excel as dateformat instead of string using Java
Spring Struts 2: action property is not shown.
Another 'Y' game
byte question
Difference between Lambda and method reference?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:39:12.