Skip to content

Commit f913150

Browse files
committed
added BiPredicate exmaple
1 parent 402476e commit f913150

File tree

1 file changed

+13
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)