Here's what you need to do for this task:
Create a functional interface named
Sum. This interface should declare a method calledaddthat takes two integer parameters,aandb, and returns an integer.Use a lambda expression to implement this interface in the
mainfunction. This lambda expression should take two arguments and return their sum.Inside the
mainfunction, use theaddmethod from theSuminterface with the numbers 5 and 3. Next, show the result on the console.