Arranging all even element to the end of the Array

 import java.util.*;


public class EvenOddArrange {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the length of Array ");
int length = sc.nextInt();
int[] arr = new int[length];
System.out.println("Enter an array of length " + length);
for(int i=0; i<length;i++) {
int n = sc.nextInt();
arr[i] += n;
}
System.out.println("The input array is " + Arrays.toString(arr));
int[] result = new int[length];
int j = 0;
for (int i = 0; i < length; i++) {
if (arr[i] % 2 != 0) {
result[j] += arr[i];
j++;
}
}
for (int i = 0; i < length; i++) {
if (arr[i] % 2 == 0) {
result[j] += arr[i];
j++;
}
}
System.out.println("The result is " + Arrays.toString(result));
}
}

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