import java.util.Hashtable;
public class HashTableInitialCapacity {
public static void main(String[] args) {
//Creating a HashTable with Initial Capacity
//Default load factor is .75;
Hashtable<Integer, String> ht = new Hashtable<>(5);
//adding element to our HashTable
ht.put(1, "Vidya");
ht.put(2, "Sambhavna");
ht.put(3, "Tina");
ht.put(4, "Gravit");
ht.put(5, "Anmol");
ht.put(6, "Veer");
//finding size of our HashTable
System.out.println(ht.size());
Hashtable<Integer, String> ht1 = new Hashtable<>(4, .90f);
ht1.put(9, "Rehana");
ht1.put(10, "Ritik");
ht1.put(11, "Viresha");
System.out.println("Mapping of ht " + ht);
System.out.println("Mapping of ht1 " + ht1);
}
}