Java.util.Locale.getISO3Language() 方法


Java.util.Locale.getISO3Language() 方法

package com.codingdict;

import java.util.*;

public class LocaleDemo {
   public static void main(String[] args) {

      // create a new locale
      Locale locale = new Locale("en", "US", "WIN");

      // print locale
      System.out.println("Locale:" + locale);

      // print ISO3 language name for locale
      System.out.println("Name:" + locale.getISO3Language());
   }
}