Skip to content

Commit b5e55f5

Browse files
committed
added BiFunction demo
1 parent ed9ceec commit b5e55f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package java8.functionalInterface;
2+
3+
import java.util.function.BiFunction;
4+
5+
public class BiFunctionInterfaceDemo1
6+
{
7+
public static void main(String[] args)
8+
{
9+
BiFunction<Integer,Integer,Integer> obj=(a,b)->a+b;
10+
System.out.println(obj.apply(10,10));
11+
}
12+
}

0 commit comments

Comments
 (0)