import java.util.*; class WhereAmI { /* The program for finding Where Am I? by J M Bishop Dec 1997 * ---------------------------------- Java 1.1 * * Illustrates the use of classes from Java packages * and the facility for changing locales. */ public static void main (String [ ] args) { Locale here = Locale.getDefault(); System.out.println("My Locale is " + here); System.out.println("Country: " + here.getCountry()); System.out.println("Language: " + here.getLanguage()); System.out.println("Country: " + here.getDisplayCountry()); System.out.println("Language: " + here.getDisplayLanguage()); Locale there = new Locale("GERMAN","GERMANY"); there.setDefault(Locale.GERMANY); System.out.println("New Locale is " + there); System.out.println("Country: " + there.getCountry()); System.out.println("Language: " + there.getLanguage()); System.out.println("Country: " + there.getDisplayCountry()); System.out.println("Language: " + there.getDisplayLanguage()); } }