Iterating, filtering and passing a limit to fix the iteration using Stream

 

import java.util.stream.*;

class JavaStreamIterate {

  public static void main(String[] args) {
    Stream
      .iterate(1, element -> element + 1)
      .filter(element -> element % 2 == 0)
      .limit(10)
      .forEach(System.out::println);
  }
}

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