Pushing and Popping an element in a LinkedList

 

import java.util.Iterator;
import java.util.LinkedList;

public class LinkedListPushAndPop {

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

ll.add("Ishu");
ll.add("Nishu");
ll.add("Naina");
ll.add("Nisha");
ll.add("Shiksha");
System.out.println("Before popping the list is");
System.out.println(ll);
ll.pop(); //element at the top will be removed
System.out.println("After popping the list is");
System.out.println(ll);
ll.push("Sudeep"); //element willl be added at the top
System.out.println("After pushing the list is");
System.out.println(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...