Java override locale setting for specific locale

前端 未结 3 1666
野趣味
野趣味 2021-01-18 16:36

I\'m using NumberFormat.getCurrencyInstance().format(amount) to format currency from a BigDecimal to a string. This works as expected the problem is that our ma

3条回答
  •  离开以前
    2021-01-18 16:55

    You can construct your own customized format. Have a look at the following link:

    http://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html

提交回复
热议问题