Java Locale create for FR, DE and EN-US

Description

Java Locale create for FR, DE and EN-US

import java.util.Locale;

public class Main {
  public static void main(String[] args) throws Exception {
    Locale[] locales = { new Locale("fr", "FR"), new Locale("de", "DE"), new Locale("en", "US") };

    for (int i = 0; i < locales.length; i++) {
      System.out.println(locales[i]);
    }/*  w  w w .  j  a  v  a  2s. co m*/
  }
}



PreviousNext

Related