How can I store an ArrayList and/or a HashMap variable using java.util.properties? If it’s not possible what other class can I use to store application configuration?
How can I store an ArrayList and/or a HashMap variable using java.util.properties ? If
Share
If you just need to serialize your collections into Strings, I highly recommend XStream. It uses reflection to serialize a class into XML. There is documentation if the default behavior doesn’t work for the class you want to serialize, but the following has worked for me every time so far: