
How to use Properties
Question: I’m trying to set and save user preferences for an application to a local file. The java.util.Properties class looks like what I want, but I don’t understand how to use it. Answer: The Properties class is a Hashtable intended only to store strings. Rather than use the Hashtable put