Java Locale getISOLanguages() method

The getISOLanguages() method of Locale class returns a list of all 2-letter language codes defined in ISO 639. This method can be used to create Locales.

Syntax

Parameter

NA

Return Value

This method doesn't return any value.

Example 1

Output:

Locale1: en_INDIA
Languages are:
0:aa
1:ab
2:ae
3:af
4:ak
5:am
6:an
7:ar
8:as
9:av
10:ay
11:az
12:ba
13:be
14:bg
15:bh
16:bi
17:bm
18:bn
19:bo
20:br
21:bs
22:ca
23:ce
24:ch
25:co
26:cr
27:cs
28:cu
29:cv
30:cy
31:da
32:de
33:dv
34:dz
35:ee
36:el

Example 2

Output:

Locale: ja_JAPAN
Countries are:
0:aa
1:ab
2:ae
3:af
4:ak
5:am
6:an
7:ar
8:as