Deleting element from a LinkedHashMap

 

import java.util.LinkedHashMap;

public class MapRemove {

public static void main(String[] args) {
//creating LinkedHashMap
LinkedHashMap<Integer, String> lhm = new LinkedHashMap<>();
//adding element to our LinkedHashMap
lhm.put(21, "Amit");
lhm.put(5, "Rahul");
lhm.put(13, "Veeru");
lhm.put(34, "Subhash");
lhm.put(19, "Saahil");
//removing one element from out map
System.out.println("Before invoking remove() method,the mapping :");
System.out.println(lhm);
lhm.remove(21);
System.out.println();
System.out.println("After invoking remove() method,the mapping :");
System.out.println(lhm);
System.out.println();
lhm.remove(34, "Subhash");
System.out.println("After invoking remove() method again,the mapping :");
System.out.println(lhm);
System.out.println();
lhm.clear();
System.out.println("After invoking clear() method,the mapping :");
System.out.println(lhm);
}
}

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