Use java lambda instead of if else – stackoverflow.com

I have this code: if(element.exist()){ //do something } I want to convert to lambda style: element.ifExist(el -> { //do something }); with ifExist method likes this: public void ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Use java lambda instead of if else – stackoverflow.com"