Finding zero or negative integer in an Array

 import java.util.*;

import java.io.*;

public class CheckOneZero {

public static void main(String args[]) {
int my_arr[] = { 11, 12, 13, 14, -11, 13, 0 };

System.out.println(test(my_arr));
}

public static boolean test(int[] arr) {
for (int n : arr) {
if (n == 0 || n == -1) {
return false;
}
}
return true;
}
}

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