Getting Keys stored Hashtable using Enumeration

 

import java.util.Enumeration;
import java.util.Hashtable;

public class HashtableKeys {

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, "Reena");
ht.put(51, "Anmol");
ht.put(16, "Veer");
ht.put(27, "Rekha");

Enumeration enu = ht.keys();
while (enu.hasMoreElements()) {
System.out.println(enu.nextElement());
}
}
}

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