This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes ListResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ListResourceBundle" Watch "ListResourceBundle" New topic
Author

ListResourceBundle

Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333



---------- Run ----------
100

Output completed (0 sec consumed) - Normal Termination

Oh My Lord!! What the heck ? I needed 21300.


OCA7
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37950
    
  22
And how does the getObject method work?
Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

Campbell Ritchie wrote:And how does the getObject method work?

getObject

public final Object getObject(String key)

Gets an object for the given key from this resource bundle or one of its parents. This method first tries to obtain the object from this resource bundle using handleGetObject. If not successful, and the parent resource bundle is not null, it calls the parent's getObject method. If still not successful, it throws a MissingResourceException.

Parameters:
key - the key for the desired object
Returns:
the object for the given key
Throws:
NullPointerException - if key is null
MissingResourceException - if no object for the given key can be found
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37950
    
  22
I didn’t say what does it do, I said how does it work? How are you going to get anything out of that array?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ListResourceBundle
 
Similar Threads
Reading File contents to a String
Regarding ListResourceBundle
I18n: using Resources
Internationalization
ResourceBundle