I was learning the Method Reference Topic. As i am new i was trying different combinations of method references.
I tried the below code but i am getting an error. I am not sure if i am missing something. Can someone please help me understand the issue.
A method reference does not allow for extra arguments. The reference in this case is: 'String::startsWith', and this gives you no opportunity to indicate with what the string should start with. So, either you use
as your lambda, or you could have
There are three kinds of actuaries: those who can count, and those who can't.