Converting an Array to Arraylist using built-in function(asList)

 

import java.util.*;

public class AsList {

public static void main(String args[]) {
//Creating an Array of String type
String arr[] = new String[] { "A", "B", "C", "D" };
//Getting the list view of the array a
List<String> list = Arrays.asList(arr);
//Printing element of list using iterator
Iterator itr = list.iterator();
while (itr.hasNext()) {
System.out.print(itr.next() + " ");
}
}
}

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