Write a predicate to check Whether the given integer is greater than 10 or not.

 

//Write a predicate to check Whether the given integer is
//greater than 10 or not.
import java.util.function.*;
import java.util.Scanner;

class CheckNo{
    public static void main(String[] args) {
        Predicate<Integer> p = i->(i>10);
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter an integer");
        int n = sc.nextInt();
        while(n!=0){
            System.out.println(p.test(n));
            System.out.println("Enter an integer");
             n = sc.nextInt();
        }
    }
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...