// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.Hashtable;

public class J1 {
    public static void main(String args[]) {
        long t1 = System.currentTimeMillis();
        Hashtable hashtable = new Hashtable();
        for(int i = 1; i <= 10000000; ++i) {
            double x = i;
            hashtable.put(x, 1.0 / x);
        }
        long t2 = System.currentTimeMillis();
        System.out.println("hashtable(100.0) = " + hashtable.get(100.0));
        System.out.println((t2 - t1) / 1000.0);
    }
}
