代码拉取完成,页面将自动刷新
//**************************************************
// Transactions.java Author
//**************************************************
public class Transactions
{
//--------------------------------------------------------
// Creats some bank accounts and requests various services
//--------------------------------------------------------
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);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。