Finding a specific number and its index in an Array

 import java.util.*;


public class FindSpecificValue{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println("Enter the array");

int arr[] = new int[n];
for(int i=0; i<n; i++){
arr[i]=sc.nextInt();
}
System.out.println("Enter the no to be found");
int x = sc.nextInt();

for(int i =0;i<n;i++){
if(arr[i]==x){
System.out.println(x+" "+"found at the location"+" "+i);
}
}

}
}

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