LocaleEx.java

import java.util.*;
import java.text.*;
public class LocaleEx {
  public static void main(String[] args) {
    Locale lf = new Locale("fr","FR"); // Franšais, France
    Locale lu = new Locale("en","US"); // Anglais, Etats-Unis
    NumberFormat nf = NumberFormat.getInstance(lf);
    NumberFormat nu = NumberFormat.getInstance(lu);
    System.out.println(nf.format(1000000.12)+" "+nf.getCurrency());
    System.out.println(nu.format(1000000.12)+" "+nu.getCurrency());
  }
}