• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lay term: what is lambda expression?

 
H Paul
Ranch Hand
Posts: 471
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"The ox is slow and the earth is patient."


(My self an ox. )

If possible, in lay term, what is lamda expression? Thanks.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50171
79
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is spelt lambda, and is too big to explain in a thread. Try the Java Tutorials, JavaWorld, Java TechNet and Wikipedia.
 
H Paul
Ranch Hand
Posts: 471
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) ->





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic