This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a property file that I read into a PropertyResourceBundle object like this.... PropertyResourceBundle resource = (PropertyResourceBundle)ResourceBundle.getBundle( "db"); I have an entry in the "db" property file that contains values which are comma delimited, like this... arr=1,2,3 but when I call resource.getStringArray("arr"), I get a ClassCastException. I want to get back a String array, which is the return type of getStringArray() anyway! I dont see what the problem is. Any help would be appreciated! SAF