All pastes #623327 Raw Edit

Mine

public java v1 · immutable
·published 2007-07-17 14:36 UTC
rendered paste body
  /**     Applies the given interest rate to the account.     @param rate the percent interest to give  */  public void addInterest(double rate) {    double decimalInterest = rate / 100;    if (this.balance > 0) {      this.balance = this.balance + (decimalInterest * this.balance);    }  }