Skip to content

Commit 6c4ad04

Browse files
committed
added BiConsumer Example
1 parent d2a87c0 commit 6c4ad04

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.BiConsumer;
4+
5+
public class BiConsumerInterfaceDemo1
6+
{
7+
public static void main(String[] args)
8+
{
9+
BiConsumer<Integer,Integer> biConsumer=(a,b)->System.out.println(a+b);
10+
biConsumer.accept(10,10);
11+
}
12+
}

0 commit comments

Comments
 (0)