Here you can find the source of mergePropertiesIntoMap(Properties props, Map map)
public static void mergePropertiesIntoMap(Properties props, Map map)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static void mergePropertiesIntoMap(Properties props, Map map) { if (map == null) { throw new IllegalArgumentException("Map must not be null"); } else {//from w ww. j av a2 s . co m if (props != null) { Enumeration en = props.propertyNames(); while (en.hasMoreElements()) { String key = (String) en.nextElement(); map.put(key, props.getProperty(key)); } } } } }