<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>

Umm, looks like this is a common problem, from threads
here
and
here
.
It seems either you don't use the method and parse the value for an array yourself or you write your own ResourceBundle implementation and do it yourself :(.  Maybe there is an apache commons project for this...
From the JDK source code, it seems the PropertyResourceBundle does not support it.