title: How do I pass an array or list of values to Java via system properties - and how do I access it?
body: <p>Is there a way to pass a list of values into Java, using only one system property?</p>
  
  <p>I'm thinking of something along the lines <code>-DMY_LIST=val1,val2,val3</code> or <code>-DMY_LIST={val1, val2}</code></p>
  
  <p>Any ideas?</p>
  
  <p>How would I access that in Java?</p>
  
  <p>Update: I initially asked for environment variables, but actually meant system properties. Similar principle, but quite different... I changed title and text accordingly now. Thanks, @serge-ballesta</p>