package com.candidjava;
import java.util.Hashtable;
import java.util.Properties;
/*
* @author : Mohan
* @description : The size() method is used to get the number of keys in this hashtable.
*/
public class PropertiesSize {
public static void main(String[] args) {
Properties properties = new Properties();
Hashtable ht = new Hashtable(properties);
ht.put("1", "hari");
ht.put("2", "anand");
ht.put("3", "vinoth");
ht.put("4", "mohan");
ht.put("5", "karthick");
System.out.println(ht);
System.out.println("Size of the hash table is: " + ht.size());
}
}