0

I do have a field in properties file, called let's say "xxx". I read value from user and assign it to that variable with the use of apache-commons library. Now I would like to read from the user multiple values and assign it to that variable. I thought that values can be stored in that field separated with commas like: xxx= value1, value2... or alternatively dynamically generate fields and assign ongoing read values to them like:

xxx1= value1
xxx2= value2 
xxx3= value3
...

however this solution I think it is a little bit more complicated. I was looking how to do it with apache-commons but with no results unfortunately. How should I approach that problem?

kmat
  • 21
  • 4
  • See https://commons.apache.org/proper/commons-configuration/userguide_v1.10/howto_basicfeatures.html#List_handling – tgdavies Mar 21 '23 at 09:36

0 Answers0