I have a list of key/value pairs of configuration values I want to store as Java property files, and later load and iterate through.
Questions:
Here is another way to iterate over the properties:
Enumeration eProps = properties.propertyNames(); while (eProps.hasMoreElements()) { String key = (String) eProps.nextElement(); String value = properties.getProperty(key); System.out.println(key + " => " + value); }