Two Laptop Bag
The moose likes Beginning Java and the fly likes Locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Locale" Watch "Locale" New topic
Author

Locale

Jackie Wang
Ranch Hand

Joined: Apr 18, 2002
Posts: 315

but there is casting error for (Locale)language
what should I do? thanks!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Would not:
be better as a second argument to the getBundle call?
-Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Locale