title: How do I specify values in a properties file so they can be retrieved using ResourceBundle#getStringArray?
body: <p>I am trying to use <code>ResourceBundle#getStringArray</code> to retrieve a <code>String[]</code> from a properties file. The description of this method in the documentation reads:</p>
  
  <blockquote>
    <p>Gets a string array for the given key from this resource bundle or one of its parents.</p>
  </blockquote>
  
  <p>However, I have attempted to store the values in the properties file as multiple individual key/value pairs:</p>
  
  <pre><code>key=value1
  key=value2
  key=value3
  </code></pre>
  
  <p>and as a comma-delimited list:</p>
  
  <pre><code>key=value1,value2,value3
  </code></pre>
  
  <p>but neither of these is retrievable using <code>ResourceBundle#getStringArray</code>.</p>
  
  <p>How do you represent a set of key/value pairs in a properties file such that they can be retrieved using <code>ResourceBundle#getStringArray</code>?</p>