Java tutorial
import java.util.*; public class Main { public static void main(String[] args) { // Create a new hasthtable Dictionary d = new Hashtable(); // Put some elements d.put("1", "from java2s.com"); d.put("2", "Cocoa"); d.put("5", "Coffee"); // print the size of the dictionary System.out.println("Size of dictionary:" + d.size()); ; } }