Printing some input over console using Consumer

 

import java.util.function.*;

public class ConsumerDemo {

  public static void main(String[] args) {
    Consumer<String> c = s -> System.out.println(s);
    c.accept("Java");
    c.accept("Invent");
  }
}

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