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 Programmer Certification (SCJP/OCPJP) 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Locale " Watch "Locale " New topic


Hama Kamal
Ranch Hand

Joined: May 29, 2011
Posts: 144

hi all,

i'm supposed to get the result in italian when i run below code but i get it in eglish,,, any idea?

``Worry does not empty tomorrow of its sorrow; it empties today of its strength.''
Riza Aktunc

Joined: Sep 07, 2011
Posts: 24
As explained in here : ; getInstance(loc) just gets the time of the given locale not the language.

If you want to print the date in Italian, you need to use DateFormat class.

OCPJP - 93%
I agree. Here's the link:
subject: Locale
Similar Threads
Country to Currency Mapping
locale in Unix
Calendar with Locale
Internationalization / TimeZone / Locale / DisplayLanguage issue
Resource Bundle Error