The Java Program: List.java

  1 // List.java
  2 
  3 import java.util.Locale;
  4 
  5 /*
  6   Invoke your Java prog with 'java -DVARNAME=VALUE prog'. Then you can
  7   read 'VARNAME' with 'System.getProperty("VARNAME")'
  8 
  9   For example, 'java=Duser.language=es List' will effect the default
 10   Locale.
 11  */
 12 
 13 class List {
 14    public static void main (String args[]) {
 15       System.getProperties().list(System.out);
 16       System.out.println ("\nLocale:");
 17       System.out.println (Locale.getDefault());
 18    }
 19 }