Getting and Setting Properties

String string = properties.getProperty("a.b"); properties.setProperty("a.b", "new value");

Comments

18 Feb 2010 - 5:46am by Anonymous (not verified)

Thank you for this

10 Mar 2010 - 1:38pm by Anonymous (not verified)

really helpful

16 Mar 2010 - 6:09pm by Daniel (not verified)

I was needing something like this. It helped me really fast!

24 May 2010 - 11:53pm by Anonymous (not verified)

How to add a new key-value pair to the Properties files? (where the key is not present in the file)

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.