Skip to content

Commit e2614bd

Browse files
committed
using simple lambda expresion
1 parent c806cf5 commit e2614bd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lambda/Sayable.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.sql.SQLOutput;
2+
3+
@FunctionalInterface
4+
interface Sayable_1 {
5+
void say();
6+
}
7+
public class Sayable{
8+
static void main() {
9+
Sayable_1 var_1 = () -> System.out.println("yooo");
10+
var_1.say();
11+
}
12+
}

0 commit comments

Comments
 (0)