getISOLanguages()
static String[] getISOLanguages()
- Returns a list of all 2-letter language codes defined in ISO 639.
import java.util.Locale;
public class MainClass {
public static void main(String args[]) throws Exception {
String[] languages = Locale.getISOLanguages();
System.out.println("\nLanguages:\n");
for (int i = 0; i < languages.length; i++)
System.out.println(languages[i]);
}
}