I'm trying to define a
string array in my resource bundle to retrieve it like this:
ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources");
String[] stringArray = bundle.getStringArray("title");
How do I specify an array of values in a properties file to retrieve it this way? Defining it this way has not worked (CastClassException):
title={"value1","value2","value3",""}
Is this even a good way to do it? I have a goofy work around method, but there has to be something better:
String[] stringArray = (bundle.getString("title").split(","));
-with-
title=value1,value2,value3,
... the problem is with the trailing ","; it produces a one space char instead of none (i.e., " " vs. "").
Thanks in advance for your comments.
Marc