Customizing a MonetaryAmountFormat using the Moneta (JavaMoney) JSR354 implemenation
问题 I'm really confused about how to customize a MonetaryAmountFormat using the Moneta JSR-354 implementation. My intention is to be able to parse both 1.23 and $3.45 as MonetaryAmount s. Here is my unit test: @Test public void testString() { Bid bid = new Bid("1.23"); assertEquals(1.23, bid.getValue(), 0.0); System.out.println(bid); bid = new Bid("$3.45"); assertEquals(3.45, bid.getValue(), 0.0); System.out.println(bid); } Here is my class: public final class Bid { private static final