Java Currency Class: getNumericCode() Method
public int getNumericCode()
The getNumericCode() method is used to get the ISO 4217 numeric code of this currency.
Package: java.util
Java Platform: Java SE 8
Syntax:
getNumericCode()Return Value:
the ISO 4217 numeric code of this currency
Return Value Type: int
Example:Java Currency class: getNumericCode() Method
import java.util.*;
public class Main {
public static void main(String args[]) {
// Get all available currencies
Set setCurrency = Currency.getAvailableCurrencies();
// Print details on all the currency
for (Currency currency : setCurrency) {
System.out.println(currency.getDisplayName() + " - "
+ currency.getNumericCode());
}
}
}
Output:
Ethiopian Birr - 230 Costa Rican Colón - 188 Cape Verdean Escudo - 132 Turkmenistani Manat - 934 Andorran Peseta - 20 Gibraltar Pound - 292 COU - 970 Bulgarian Lev - 975 Zimbabwean Dollar (2009) - 932 Hong Kong Dollar - 344 Dominican Peso - 214 Qatari Rial - 634 Bolivian Boliviano - 68 Gold - 959 Croatian Kuna - 191 Thai Baht - 764 Malaysian Ringgit - 458 Nicaraguan Córdoba - 558 Slovak Koruna - 703 Brunei Dollar - 96 Ukrainian Hryvnia - 980 Chilean Peso - 152 Serbian Dinar (2002-2006) - 891 Swazi Lilangeni - 748 British Pound Sterling - 826 Paraguayan Guarani - 600 Uzbekistan Som - 860 ZMW - 967 US Dollar - 840 Russian Ruble (1991-1998) - 810 Indian Rupee - 356 Rwandan Franc - 646 CHW - 948 East Caribbean Dollar - 951 Gambian Dalasi - 270 Laotian Kip - 418 Estonian Kroon - 233 Liberian Dollar - 430 Ghanaian Cedi - 936 Palladium - 964 Cuban Peso - 192 European Composite Unit - 955 Cayman Islands Dollar - 136 Serbian Dinar - 941 Guinea-Bissau Peso - 624 Macanese Pataca - 446 Singapore Dollar - 702 Solomon Islands Dollar - 90 Angolan Kwanza - 973 CFA Franc BCEAO - 952 Unknown Currency - 999 Moldovan Leu - 498 Surinamese Dollar - 968 Saudi Riyal - 682 Iraqi Dinar - 368 Comorian Franc - 174 Japanese Yen - 392 Mexican Investment Unit - 979 Guinean Franc - 324 Vanuatu Vatu - 548 Venezuelan Bolívar - 937 Vietnamese Dong - 704 Libyan Dinar - 434 Finnish Markka - 246 Greek Drachma - 300 Omani Rial - 512 United Arab Emirates Dirham - 784 Malagasy Ariary - 969 Romanian Leu - 946 Icelandic Króna - 352 Egyptian Pound - 818 Moroccan Dirham - 504 Malawian Kwacha - 454 Samoan Tala - 882 Seychellois Rupee - 690 North Korean Won - 408 Zimbabwean Dollar (2008) - 935 Lebanese Pound - 422 ZWN - 942 Congolese Franc - 976 Argentine Peso - 32 Fijian Dollar - 242 Bahamian Dollar - 44 Nepalese Rupee - 524 Tongan Paʻanga - 776 South African Rand - 710 Mauritian Rupee - 480 Saint Helena Pound - 654 Jordanian Dinar - 400 Swiss Franc - 756 Czech Republic Koruna - 203 Swedish Krona - 752 Sierra Leonean Leone - 694 Jamaican Dollar - 388 US Dollar (Same day) - 998 Bulgarian Hard Lev - 100 Sudanese Dinar (1992-2007) - 736 Brazilian Real - 986 Italian Lira - 380 AYM - 945 Norwegian Krone - 578 Bahraini Dinar - 48 Luxembourgian Franc - 442 Bermudan Dollar - 60 Bhutanese Ngultrum - 64 Yemeni Rial - 886 Lesotho Loti - 426 Zambian Kwacha - 894 Malagasy Franc - 450 Mozambican Metical (1980-2006) - 508 Australian Dollar - 36 Peruvian Nuevo Sol - 604 Chinese Yuan - 156 Honduran Lempira - 340 Haitian Gourde - 332 CFP Franc - 953 French UIC-Franc - 0 UYI - 940 Georgian Lari - 981 Cypriot Pound - 196 Tunisian Dinar - 788 Austrian Schilling - 40 Ghanaian Cedi (1979-2007) - 288 Euro - 978 Papua New Guinean Kina - 598 Ugandan Shilling - 800 Turkish Lira - 949 Surinamese Guilder - 740 Sudanese Pound - 938 European Unit of Account (XBD) - 958 Lithuanian Litas - 440 Cambodian Riel - 116 Uruguayan Peso - 858 Cuban Convertible Peso - 931 Maltese Lira - 470 Colombian Peso - 170 Sri Lankan Rupee - 144 CHE - 947 Aruban Florin - 533 Bosnia-Herzegovina Convertible Mark - 977 CFA Franc BEAC - 950 Indonesian Rupiah - 360 New Zealand Dollar - 554 European Unit of Account (XBC) - 957 Azerbaijani Manat - 944 Mozambican Metical - 943 Netherlands Antillean Guilder - 532 Belarusian Ruble - 974 Canadian Dollar - 124 Dutch Guilder - 528 French Gold Franc - 0 Macedonian Denar - 807 Timorese Escudo - 626 Kuwaiti Dinar - 414 European Monetary Unit - 956 Slovenian Tolar - 705 Armenian Dram - 51 Myanma Kyat - 104 Botswanan Pula - 72 Albanian Lek - 8 Trinidad and Tobago Dollar - 780 Danish Krone - 208 Polish Zloty - 985 German Mark - 276 French Franc - 250 Chilean Unit of Account (UF) - 990 Yugoslavian New Dinar (1994-2002) - 891 Mexican Peso - 484 ADB Unit of Account - 965 Hungarian Forint - 348 New Taiwan Dollar - 901 Bangladeshi Taka - 50 Special Drawing Rights - 960 Azerbaijani Manat (1993-2006) - 31 Portuguese Escudo - 620 Turkmenistani Manat (1993-2009) - 795 Kazakhstani Tenge - 398 Barbadian Dollar - 52 Afghan Afghani - 971 Syrian Pound - 760 Panamanian Balboa - 590 Venezuelan Bolívar (1871-2008) - 862 South Korean Won - 410 Mauritanian Ouguiya - 478 Afghan Afghani (1927-2002) - 4 Eritrean Nakfa - 232 Irish Pound - 372 Belarusian New Ruble (1994-1999) - 112 Salvadoran Colón - 222 Belgian Franc - 56 Kenyan Shilling - 404 South Sudanese Pound - 728 Platinum - 962 Turkish Lira (1922-2005) - 792 Testing Currency Code - 963 Zimbabwean Dollar (1980-2008) - 716 Silver - 961 Nigerian Naira - 566 Algerian Dinar - 12 Mongolian Tugrik - 496 Iranian Rial - 364 Spanish Peseta - 724 Tajikistani Somoni - 972 Namibian Dollar - 516 Latvian Lats - 428 Sucre - 994 Maldivian Rufiyaa - 462 São Tomé and Príncipe Dobra - 678 Russian Ruble - 643 Djiboutian Franc - 262 Pakistani Rupee - 586 Philippine Peso - 608 Burundian Franc - 108 Tanzanian Shilling - 834 Romanian Leu (1952-2006) - 946 Guyanaese Dollar - 328 Israeli New Sheqel - 376 Somali Shilling - 706 Belize Dollar - 84 Guatemalan Quetzal - 320 Kyrgystani Som - 417 US Dollar (Next day) - 997 Bolivian Mvdol - 984 Falkland Islands Pound - 238
Java Code Editor:
Previous:getInstance Method
Next:getSymbol Method
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/java-tutorial/util/currency/java_currency_getnumericcode.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics