:arrow: zwei String, man kann es nicht mit einem Array (oder irgendwas anderem als einem String) aufrufen.setProperty(String key, String value)
Nein, Properties ist wirklich nur dazu gedacht String-Schlüssel und -Werte aufzunehmen. Da machen auch die XML-Methoden keinen Unterschied.Because Properties inherits from Hashtable, the put and putAll methods can be applied to a Properties object. Their use is strongly discouraged as they allow the caller to insert entries whose keys or values are not Strings. The setProperty method should be used instead. If the store or save method is called on a "compromised" Properties object that contains a non-String key or value, the call will fail. Similarly, the call to the propertyNames or list method will fail if it is called on a "compromised" Properties object that contains a non-String key.