I was trying to convert a lambda expression into method reference, but I failed to do so. can anybody help me with this? The lambda expression takes 2 int parameters adds it and return the result.
public class Addition {
public static void main(String[] args) {
int a = 10;
int b = 20;
A ref = (int c, int d) -> c + d;
System.out.println(ref.add(a, b));
}
}