Example usage for java.util Currency getNumericCode

List of usage examples for java.util Currency getNumericCode

Introduction

In this page you can find the example usage for java.util Currency getNumericCode.

Prototype

public int getNumericCode() 

Source Link

Document

Returns the ISO 4217 numeric code of this currency.

Usage

From source file:Test.java

public static void main(String[] args) {
    Set<Currency> currencies = Currency.getAvailableCurrencies();
    for (Currency currency : currencies) {
        System.out.println("" + currency.getDisplayName() + " - " + currency.getDisplayName(Locale.GERMAN)
                + " - " + currency.getNumericCode());
    }/*from w w  w .  j  av  a 2 s  . c  o  m*/

}