正在加载图片...
constructor public Money (double amount, Currency currency)t this amount=BigInteger valueOf(Math. round (amount *100)) this currency currency ./public Money(long amount, Currency currency)( this amount= BigInteger valueof(amount*100) this currency currency public static Money dollars(double amount)( return new Money(amount, Currency getInstance (USD"))constructor public Money(double amount, Currency currency) { this.amount = BigInteger.valueOf(Math.round(amount * 100)); this.currency = currency; } public Money(long amount, Currency currency) { this.amount = BigInteger.valueOf(amount * 100); this.currency = currency; } public static Money dollars(double amount) { return new Money(amount, Currency.getInstance("USD")); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有