Searching a value in Hashtable using contains() method

 

import java.util.Hashtable;

public class HashtableContains {

public static void main(String[] args) {
Hashtable<Integer, String> ht = new Hashtable<>();
//Adding element to our Table ht
ht.put(31, "Vidya");
ht.put(12, "Sambhavna");
ht.put(33, "Tina");
ht.put(45, "Gravit");
ht.put(51, "Anmol");
ht.put(16, "Veer");

System.out.println("Is 'Tina' is present in the table ?");
System.out.println(ht.contains("Tina"));
System.out.println("Is 'Veera' is present in the table ?");
System.out.println(ht.contains("Veera"));
}
}

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