Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

public class Main {
    private static String loc = "es_AR";

    private static Map<String, String> initCountries() {
        Map<String, String> countries = new HashMap<String, String>();
        for (String iso : Locale.getISOCountries()) {
            Locale l = new Locale(loc, iso);
            countries.put(l.getDisplayCountry(), iso);
        }
        return countries;
    }
}