Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

lambda java

interface demoLambda{
void sayHello();
}
public class main(String[]args){
demoLambda(()->System.out.println("hello"));
}
public void demoLambda(demoLambda d){
d.sayhello();
}
 
PREVIOUS NEXT
Tagged: #lambda #java
ADD COMMENT
Topic
Name
3+7 =