Exemplo n.º 1
0
 public Money calculate() {
   return new Money(money.getAmount() * exchangeRate.getRate(), exchangeRate.getTo());
 }
 @Override
 public void show(Money money) {
   this.textField.setText(String.format("%.2f", money.getAmount()));
 }