How to get NumberFormat instance from currency code?

前端 未结 6 1355
無奈伤痛
無奈伤痛 2020-12-15 05:25

How can I get a NumberFormat (or DecimalFormat) instance corresponding to an ISO 4217 currency code (such as \"EUR\" or \"USD\") in order to format

6条回答
  •  太阳男子
    2020-12-15 05:40

    For completeness, though I've never used it, you might want to give Joda Money a try. If it's as good as Joda-Time, it probably is easier and more powerful than the standard JDK stuff.

提交回复
热议问题