This section shows you how to set the default locale. Example presented in the section, illustrates you how to get and set the default locale.
Following API has been used in the program:
Locale.getDefault():
Above method returns the default locale in installed all locales.
Locale.setDefault():
Above method sets the locale for the default setting. This method takes a
locale as a parameter for the method to set it as a default locale.
Here is the code of the program:
import java.util.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Setting the default Locale View All Comments
Post your Comment