Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Enumeration; import java.util.Hashtable; public class Main { static Hashtable hashtableMerge(Hashtable dst, Hashtable src) { if (dst == null) return src; if (src == null) return dst; Enumeration e = src.keys(); while (e.hasMoreElements()) { Object element = e.nextElement(); dst.put(element, src.get(element)); } return dst; } }