Java Currency getNumericCode() MethodThe getNumericCode() is the method of Java Currency class which is used to get the numeric code (as defined by ISO 4217) for the invoking currency. SyntaxFollowing is the declaration of getNumericCode() method: Parameter
ReturnsThe getNumericCode() method returns the numeric code (as defined by ISO 4217) for the invoking currency. ExceptionsNA Compatibility VersionJava 1.7 and above Example 1Output: 230 - Ethiopian Birr 188 - Costa Rican Colón 132 - Cape Verdean Escudo 934 - Turkmenistani Manat 20 - Andorran Peseta 292 - Gibraltar Pound 970 - COU 975 - Bulgarian Lev 932 - Zimbabwean Dollar (2009) 344 - Hong Kong Dollar 214 - Dominican Peso 634 - Qatari Rial ... Example 2Output: Name: British Pound Sterling Numeric Code: 826 Example 3Output: Enter the numeric code which you want to search: 356 Currency with Numeric code 356 is found. Enter the numeric code which you want to search: 111 Currency with Numeric code 111 not found. Example 4Output: Enter the Currency: INR Name: Indian Rupee Numeric Code: 356 Next TopicJava-currency-getsymbol-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India