Left Shifting of an Array

 

import java.util.*;

public class LeftShiftedArray{
public static void main(String args[]){
int arr [] = {1,2,3,4,5,6,7,8};

if(arr.length > 1){
int startElement = arr[0];
for(int i=1; i<arr.length; i++){
arr[i-1] = arr[i];
}
arr[arr.length-1] = startElement;
}
System.out.println(Arrays.toString(arr));
}
}

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