Currency.getAvailableCurrencies(): This method is available in java.util.Currency class of Java.
Syntax:
Set<Currency> java.util.Currency.getAvailableCurrencies()
This method gets the set of available currencies. The returned set of currencies contains all of the available currencies, which may include currencies that represent obsolete ISO 4217 codes.
Parameters: NA
Returns: the set of available currencies. If there is no currency available in the runtime, the returned set is empty.
Exceptions: NA
Approach
Java
import java.util.Currency;public class CurrencygetAvailableCurrencies {public static void main(String[] args) {System.out.println(Currency.getAvailableCurrencies());}}
Output:
[OMR, PAB, XXX, LYD, MXN, KMF, XPD, LBP, MZM, NAD, CLF, PLN,XAG, DJF, IQD, XFU, KYD, KPW, PHP, HNL, KWD, MXV, CZK, GNF,ESP, HRK, YUM, TZS, HUF, MAD, ALL, DEM, TWD, RSD, BYN, NIO,BND, MGA, KZT, AFA, VEB, BYB, SHP, DKK, PYG, NGN, EGP, SLL,NOK, CNY, ADP, BGL, ATS, MOP, INR, TPE, ZWD, MMK, KHR, MZN,GMD, SVC, IRR, DZD, JOD, SCR, RUB, VUV, JMD, LRD, THB, TND,BRL, SGD, UZS, XBA, KGS, BTN, BZD, AMD, ANG, HKD, CAD, LUF,XPT, FRF, TMT, MTL, GHS, USS, MGF, AWG, CLP, HTG, TTD, GTQ,VND, PTE, AED, BBD, LSL, MRO, NLG, CRC, SDG, AOA, DOP, RON,SIT, QAR, EEK, SBD, FKP, LKR, XBD, SZL, COP, UGX, XSU, CSD,EUR, WST, VES, GBP, SEK, ARS, GYD, MUR, AZN, ISK, SRG, XAU,ERN, STD, AYM, BOV, TRY, GRD, CVE, XPF, GHC, IDR, XTS, SOS,CHW, ROL, MWK, MDL, YER, VEF, STN, ZMK, UYI, USN, GEL, ZAR,BMD, BDT, CHF, GIP, KRW, BEF, ZWN, XCD, BHD, MRU, ITL, SAR,JPY, LTL, CUC, BIF, AUD, FJD, BGN, MNT, RWF, CDF, GWP, BWP,USD, MKD, NPR, UAH, COU, ETB, UYU, PGK, IEP, LVL, ZWL, XAF,TMM, AZM, BAM, SYP, AFN, XFO, MVR, NZD, BYR, CYP, XBC, PKR,CUP, LAK, SSP, XOF, SRD, XBB, MYR, SKK, PEN, CHE, BOB, FIM,ZMW, ILS, RUR, ZWR, TRL, KES, TOP, XDR, TJS, XUA, BSD, SDD]
No comments:
Post a Comment