Getting index of first and last occurance of any element in the LinkedList

 

import java.util.LinkedList;

public class LinkedListIndexOfEle {

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");
//will give index of first occurance of Nishu
System.out.println(ll.indexOf("Nishu"));
//will give index of last occurance of Nishu
System.out.println(ll.lastIndexOf("Nishu"));
}
}

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