Example usage for java.text NumberFormat getAvailableLocales

List of usage examples for java.text NumberFormat getAvailableLocales

Introduction

In this page you can find the example usage for java.text NumberFormat getAvailableLocales.

Prototype

public static Locale[] getAvailableLocales() 

Source Link

Document

Returns an array of all locales for which the get*Instance methods of this class can return localized instances.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    Locale[] locales = NumberFormat.getAvailableLocales();
    for (Locale locale : locales) {
        System.out.println(locale.getDisplayCountry());
    }// w w  w  .  ja  va 2  s.  c o m
}