Here you can find the source of setProperty(Dictionary
public static void setProperty(Dictionary<String, String> properties, String key, String value)
//package com.java2s; // are made available under the terms of the Eclipse Public License v1.0 import java.util.Dictionary; public class Main { public static void setProperty(Dictionary<String, String> properties, String key, String value) { if (value != null) { properties.put(key, value);//from w w w .j a v a 2s. co m } } }