Please let me know. I was reading method reference it was mentioned that an alternative way of a lambda expression and shown some examples but when I tried to do convert my own predicate to method reference I could not able to do it.
Predicate<String> endsWith= str-> str.endsWith("a");
endsWith.test("asap");
returns the value.
How to convert the same as method reference ??
Thanks in advance