Java tutorial
import java.util.*; public class Main { public static void main(String[] args) { Dictionary d = new Hashtable(); // put some elements d.put("1", "from java2s.com"); d.put("2", "Cocoa"); d.put("5", "Coffee"); // print how many times put was called System.out.println("Number of times put was called:" + d.size()); } }