Here you can find the source of JoinMaps(Map into, Map other)
public static void JoinMaps(Map into, Map other)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static void JoinMaps(Map into, Map other) { if (other == null) return; Iterator it = other.keySet().iterator(); while (it.hasNext()) { Object prot = it.next(); into.put(prot, other.get(prot)); }//from ww w . j a va 2s . c om } }