Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ResourceBundle.getStringArray() ... what does it return ?

Gen.JavaDec 15 2006 — edited Dec 16 2006
String s[];
try {
      s=WinBundle.getStringArray("inside");
    } catch ( Exception ex)
            {
              System.out.println(ex);
            }
Suppose that WinBundle has two lines, each starts with "inside":

inside = one
inside = two

I expect to get a String array of {"one", "two"}. I am getting ClassCastException. What am I doing wrong? What does getStringArray() actually return ? What does it expect in the resource bundle ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2007
Added on Dec 15 2006
7 comments
210 views