Sorting duplicate elements of given Array

 import java.util.*;


class SortDuplicateElement{
public static void main(String args[]){
int my_arr[]={10,10,10,20,20,30,40,50,60,70};
System.out.println("length of updated array is : "+sort_array(my_arr));

}
public static int sort_array(int arr[]){
int index=1;
for(int i=0;i<arr.length;i++){
if(arr[i]!=arr[index-1]){
arr[index++]=arr[i];
}
}
return index;
}
}

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