Java tutorial
import java.util.Locale; public class Main { public static void main(String args[]) { // create an object of locale class Locale[] array = Locale.getAvailableLocales(); // print the results for (int i = 0; i < 10; i++) { System.out.println(array[i].getISO3Country()); } } }