Untitled
unknown
plain_text
2 years ago
654 B
5
Indexable
public class Transactions { public static void main(String[] args) { Account acct1 = new Account("Ted Murphy", 72354, 102.56); Account acct2 = new Account("Jane smith", 69713, 40.00); Account acct3 = new Account("Edward Demsey",93757, 759.32); acct1.deposit(25.85); double smithBalance =acct2.deposit(500.00); system.out.println("smith balance after deposit: "+smithBalance); system.out.println("smith balance after withdrawal:"+acct2.withdraw(430.75, 1.50)); acct1.addInterest(); acct2.addInterest(); acct3.addInterest(); system.out.println(); system.out.println(acct1); system.out.println(acct2); system.out.println(acct3); } }
Editor is loading...