Complete the code below according to the instructions below and the example test:
method withdraw throws an exception if amount is greater than balance.
For example:
Account account = new Account("Acct-001","Juan dela Cruz", 5000.0); account.withdraw(5500.0);
System.out.println("Balance: "+account.getBalance());
Insufficient: Insufficient funds.
Balance: 5000.0
Account account = new Account("Acct-001","Juan dela Cruz", 5000.0); account.withdraw(500.0);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here