java编程,本人菜鸟级,求各位帮帮忙啊。。。谢谢谢谢
1.CreateaWalletobjectforeachelementinmyWalletarrayasfollows:myWallet[0]Wallet’sowner–...
1.
Create a Wallet
object for each element in myWallet array as follows:
myWallet[0] Wallet’s owner – “Ang Ah Kow”Name of bank of the credit card inside this
wallet – “DBS”Credit Limit of the credit card inside this
wallet – $10,000
myWallet[1] Wallet’s owner – “Chan Ah Kow”Name of bank of the credit card inside this
wallet – “UOB”Credit Limit of the credit card inside this
wallet – $20,000
myWallet[2] Wallet’s owner – “Eng Ah Kow”Name of bank of the credit card inside this
wallet – “HSBC”Credit Limit of the credit card inside this
wallet – $30,000
myWallet[3] Wallet’s owner – “Foo Ah Kow”Name of bank of the credit card inside this
wallet – “Citibank”Credit Limit of the credit card inside this
wallet – $40,000
myWallet[4] Wallet’s owner – “Gan Ah Kow”Name of bank of the credit card inside this
wallet – “OCBC”Credit Limit of the credit card inside this
wallet – $50,000
2.
Display ownerName
of myWallet[1] using the getOwner method (Answer should be “Chan
Ah Kow”)
3.
Display bankName
of myWallet[4] using the getBankName method of the Card object inside myWallet[4] (Answer should be “OCBC”)
4.
Display creditLimitof myWallet[2] using the getCreditLimit method of the Card object inside myWallet[2] (Answer should be 30000) 展开
Create a Wallet
object for each element in myWallet array as follows:
myWallet[0] Wallet’s owner – “Ang Ah Kow”Name of bank of the credit card inside this
wallet – “DBS”Credit Limit of the credit card inside this
wallet – $10,000
myWallet[1] Wallet’s owner – “Chan Ah Kow”Name of bank of the credit card inside this
wallet – “UOB”Credit Limit of the credit card inside this
wallet – $20,000
myWallet[2] Wallet’s owner – “Eng Ah Kow”Name of bank of the credit card inside this
wallet – “HSBC”Credit Limit of the credit card inside this
wallet – $30,000
myWallet[3] Wallet’s owner – “Foo Ah Kow”Name of bank of the credit card inside this
wallet – “Citibank”Credit Limit of the credit card inside this
wallet – $40,000
myWallet[4] Wallet’s owner – “Gan Ah Kow”Name of bank of the credit card inside this
wallet – “OCBC”Credit Limit of the credit card inside this
wallet – $50,000
2.
Display ownerName
of myWallet[1] using the getOwner method (Answer should be “Chan
Ah Kow”)
3.
Display bankName
of myWallet[4] using the getBankName method of the Card object inside myWallet[4] (Answer should be “OCBC”)
4.
Display creditLimitof myWallet[2] using the getCreditLimit method of the Card object inside myWallet[2] (Answer should be 30000) 展开
展开全部
您是想管理银行账户,这5个账户主要有三大要素,户主,哪个银行,信用额度。而你是想需要时,调用这些要素。在这里我也是菜鸟,但是我可以说一下我的思路。您可以使用数据库进行进行管理,数据少时可以用Jtable表格进行管理。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询