Comparing two Arraylists

 import java.util.*;


public class CompareTwoArrayList{
public static void main(String args[]){
ArrayList<String> a1 = new ArrayList<String>();

a1.add("dog");
a1.add("cat");
a1.add("buffalo");
a1.add("lion");
a1.add("tiger");
ArrayList<String> a2 = new ArrayList<String>();
a2.add("dog");
a2.add("cat");
a2.add("buffalo");
a2.add("lion");
a2.add("hippo");

//storing element in new array to compare
ArrayList<String> a3 = new ArrayList<String>();

for(String i : a1){
a3.add(a2.contains(i) ? "Yes" : "No");
}
System.out.println(a3);
}
}

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