Write a predicate to check the length of given string is greater than or not.

import java.util.Scanner;

import java.util.function.*;

public class CheckStringLength {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.println("Enter a String");
    String name = sc.nextLine();
    while (true) {
      Predicate<String> p = s -> (s.length() > 3);
      System.out.println(p.test(name));
      System.out.println("--------------------------------");
      System.out.println("Enter another String");
      System.out.println("Type exit to close the program");
      name = sc.nextLine();
      if (name.equals("exit")) {
        break;
      }
    }
  }
}

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...