Get the 2-letter country code; may be equal to ""
import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { Locale[] locales = Locale.getAvailableLocales(); for (int i = 0; i < locales.length; i++) { String country = locales[i].getCountry(); } } }