Commit e96d9781 authored by sam.pople's avatar sam.pople

changes again

parent 05f45cf0
No preview for this file type
No preview for this file type
......@@ -86,8 +86,8 @@ public class BankAccount {
this.Balancevalue(((int) Math.round(this.getBalance() * this.getFees())));
}
public void display() throws Exception {
System.out.println("Bank details: \n");
System.out.println("Account no.: " + this.getAccountNumber() + "\nAccount holder: "+this.getName());
System.out.println("Bank details: ");
System.out.println("\nAccount no.: " + this.getAccountNumber() + "\nAccount holder: "+this.getName());
String balance = this.formatAmount(this.getBalance());
System.out.println("Balance: " + balance);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment