![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Should I want to add more words, I also have to change the value of numberOfWords (there is a part later in the program where it needs to know how many words there are). Is there any way of automatically finding out how many there are, without me having to manually change it? In addition to using the The ResourceBundle object is the mechanism for localization in Java, so maybe you could use that, but I'm not sure how you'd read strings for two (or more) different languages. Usually it is used to read the strings for the language/locale that is currently set. Maybe you could dynamically switch locales and call Replies:
|
Sponsored Links
|