我可以用Java获得ISO货币代码的文本描述吗? [英] Can I get a text description of an ISO currency code in Java?

查看:82
本文介绍了我可以用Java获得ISO货币代码的文本描述吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法来获取Java中由Currency对象表示的货币的文字描述?

Is there a way to get a text description of the currency represented by a Currency object in Java?

即我有AZM,我想要阿塞拜疆马纳特

i.e. I have AZM, I want Azerbaijan Manat

推荐答案

您将必须设置自己的映射。
Google或Stackoverflow问题将指向 ISO网站

You will have to set up your own mapping. Google or Stackoverflow questions will point to the ISO site

但是您必须抓取页面,因为似乎没有XML或文本文件,而国家/地区也是如此

However you'll have to scrape the page as there seems to be no XML or text file as there is for country

这篇关于我可以用Java获得ISO货币代码的文本描述吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆