Removing first and last element in a LinkedList using Poll method

 

import java.util.LinkedList;

public class LinkedListPoll {

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.poll(); //will remove first element
System.out.println("The Updated List is : "+ll);
ll.pollFirst(); //will remove first element
System.out.println("The Updated List is : "+ll);
ll.pollLast(); //will remove last element
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...