Printing Keys, value, and Key-value Pair of a LinkedHashMap.


import java.util.LinkedHashMap;

public class LinkedHashMapPrint {

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");

System.out.println("Keys = " + lhm.keySet());
System.out.println("Values = " + lhm.values());
System.out.println("Key-value Pair Set = " + lhm.entrySet());
}
}

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