Adding element at first and last location/index using offer built-in method

 

import java.util.LinkedList;

public class LinkedListOffer {

public static void main(String[] args) {
LinkedList<String> ll = new LinkedList<>();

//addding element to linkedlist ll
ll.add("Ishu");
ll.add("Nishu");
ll.add("Naina");
ll.add("Nishu");
ll.add("Shiksha");
System.out.println("The original list is : " + ll);
ll.offer("Sudeep"); //add to the last i.e at tail
ll.offerFirst("Kiyan"); //add at the top
ll.offerLast("Vinod"); //add to the last
System.out.println("The updated list is : " + ll);
}
}

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