Multiplying all members of ArrayList by 2 using stream

 

import java.util.*;
import java.util.stream.*;

public class StreamMul {

  public static void main(String[] args) {
    ArrayList<Integer> l = new ArrayList<>();
    l.add(0);
    l.add(5);
    l.add(10);
    l.add(15);
    l.add(20);
    l.add(25);
    System.out.println(l);
    List<Integer> l1 = l.stream().map(i -> i * 2).collect(Collectors.toList());
    System.out.println(l1);
  }
}

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