Java Set Default Locale

Locale can be set also in our java programs by using
the method setDefault() of Locale class. In this example we have set the
default locale value of our Locale with the Locale.ITALY.

In our example of setting default locale value we can
get the value of default locale by using getDefault() method. Here it is
English and now we have to change it with our Locale with the use of setDefault()
method of Locale class.