Java Locale.getISO3Language()

Syntax

Locale.getISO3Language() has the following syntax.

public String getISO3Language()   throws MissingResourceException

Example

In the following code shows how to use Locale.getISO3Language() method.


// w w w .  j  a va  2  s. com
import java.util.Locale;

public class Main {

   public static void main(String[] args) {
      Locale locale = new Locale("en", "US", "WIN");

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

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

   }
}

The code above generates the following result.