In this section, you will learn how to obtain the locale. We are providing you an example which will obtain the locale of the system by using the System.getProperty(). This will provide all the properties of the system.
System.getProperty("user.language")- This will return the locale of the system.
Here is the code of GetSystemLocale.java
Output will be displayed as:
Posted on: April 17, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles