File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Locale " Watch "Locale " New topic
Author

Locale

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
Greenhorn

Joined: Sep 07, 2011
Posts: 24
As explained in here : http://download.oracle.com/javase/1.4.2/docs/api/java/util/Calendar.html#getInstance%28java.util.Locale%29 ; 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%
 
 
subject: Locale