DisplayCountryOutput.java Source code

Java tutorial

Introduction

Here is the source code for DisplayCountryOutput.java

Source

import java.util.Locale;

public class DisplayCountryOutput {

    public static void main(String[] argv) {

        Locale defaultLocale = Locale.getDefault();
        System.out.println(defaultLocale.getISO3Country());
        System.out.println(defaultLocale.getDisplayCountry());
        System.out.println(defaultLocale.getDisplayCountry(Locale.GERMAN));
    }
}