Code example for Locale

0
        if (entry == null || entry.iso == null) {
            return null; 
        } else { 
            Locale locale;
            if (entry.language == null) {
                locale = new Locale(entry.iso);
            } else { 
                locale = new Locale(entry.language, entry.iso);
            } 
            String[] tz = TimeZones.forLocale(locale);
            if (tz.length == 0) return null;
            return tz[0];
        } 
    } 
 
    /** 
     * Given a GSM Mobile Country Code, returns 
     * an ISO two-character country code if available. 
     * Returns "" if unavailable. 
     */ 
    public static String