The Locale class is instantiated to produce objects that describe a geographical or cultural region. It is one of several classes that provide us with the ability to write programs that can execute in different international environments. For example, the formats used to display dates, times, and numbers are different in various regions.
The Locale class defines the following constants that are useful for dealing with several common locales:
For example, the expression Locale.CANADA represents the Locale object for Canada.
The constructors for Locale are :
Locale defines several methods some of the most important are shown below :
In the above program at
THINGS TO TRY