hey guys. can smb explain lambdas to me? what am i doing wrong?
public interface FunctionalInterface { String function(String str);}public class Main { public static void main(String[] args) { FunctionalInterface functionalInterface= "hello"->"hello"; }}
public interface FunctionalInterface { String function(String str);}public class Main { public static void main(String[] args) { FunctionalInterface functionalInterface= "hello"->"hello"; }}
My lambda complies to the functional interface. Its argument is of String type, and it returns String too. wt f?