I am loading my property file using the load()
of properties class.I am able to read the key-value pair of the property class using set,hashmap,treeset,enumeration, but it does not retrieve the duplicate pairs. The duplicate pairs are retrieved only once.
PropertiesConfiguration from Apache Commons Configuration supports loading a properties file with multiple entries with the same key.
Use the getStringArray(key) method or getList(key) method to access all values for the specified key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With