Locale.getISO3Language() has the following syntax.
public String getISO3Language() throws MissingResourceException
In the following code shows how to use Locale.getISO3Language() method.
/*from w ww . jav a2 s.c o m*/ 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.