Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lambdas;
- @FunctionalInterface
- interface ITestInt {
- public abstract boolean isNumberPos(int intValue);
- }
- public class LambdaExercise3 {
- public static void main(String[] args) {
- ITestInt test = (intValue) -> (intValue >= 0)? true : false;
- System.out.println(test.isNumberPos(-5));
- System.out.println(test.isNumberPos(5));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement