Java tutorial
import java.util.Locale; public class Main { public static void main(String[] args) { Locale locale1 = new Locale("en", "US", "WIN"); System.out.println("Locale:" + locale1); // set another default locale Locale.setDefault(new Locale("fr", "FRANCE", "MAC")); Locale locale2 = Locale.getDefault(); // print the new locale System.out.println("Locale::" + locale2); } }