I\'m trying to have a default java.util.Properties
object in my class, with the default properties it accepts, and let the developer override some of them by sp
You're almost good:
Properties defaultProperties = new Properties();
defaultProperties.setProperty("key1", "value1");
defaultProperties.setProperty("key2", "value2");
Properties finalProperties = new Properties(defaultProperties);
finalProperties.setProperty("key2", "value3");
EDIT: replaced put
by setProperty
.