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); // print the locale as a string System.out.println("Locale:" + locale1.toString()); Locale locale2 = new Locale("fr", "FRANCE", "WIN"); System.out.println("Locale2:" + locale2); // print the locale as a string System.out.println("Locale2:" + locale2.toString()); } }