Finding 2nd largest element in a given Array



 import java.util.*;
public class SecLargestEle{
public static void main(String args[]){
int arr[] = {10789, 2035, 1899, 1456, 2013,
1458, 2458, 1254, 1472, 2365,
1456, 2165, 1457, 2456};

System.out.println("Original Array"+ Arrays.toString(arr));

Arrays.sort(arr);
System.out.println(arr[arr.length-2]);
}
}

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