Removing or Deleting an element or removing all elements from a HashTable

 

import java.util.Hashtable;

public class HashTableRemove {

public static void main(String[] args) {
Hashtable<Integer, String> ht = new Hashtable<>();
ht.put(31, "Vidya");
ht.put(12, "Sambhavna");
ht.put(33, "Tina");
ht.put(45, "Gravit");
ht.put(51, "Anmol");
ht.put(16, "Veer");
//null value can not be added in HashTable
// ht.put(null, null);

//printing out Table
System.out.println("Original Our Table is : ");
System.out.println(ht);

//remvoing element from out Table
ht.remove(31);
System.out.println("Mapping of ht after first removal" + ht);
ht.remove(51, "Anmol");
System.out.println("Mapping of ht after Second removal" + ht);
    //removing all element from the table
ht.clear();
System.out.println("Mapping of ht after first removal" + ht);
}
}

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