Code example for BigDecimal

	// ********************** Business Methods ********************** // 
	public static MonetaryAmount fromString(String amount, String currencyCode) {
		return new MonetaryAmount(new BigDecimal(amount),
	public static MonetaryAmount convert(MonetaryAmount amount,
										 Currency toConcurrency) {
		// TODO: This requires some conversion magic and is therefore broken 
		return new MonetaryAmount(amount.getValue(), toConcurrency);
Stop searching for code, let great code find you!  Add Codota to your java IDE