Java tutorial
//package com.java2s; import java.util.Locale; public class Main { public static String getCurrentCountryCode() { return Locale.getDefault().getCountry().trim(); } }