【发布时间】:2020-07-24 11:10:27
【问题描述】:
ACCOUNT p1= new SavingAccount("Saving","Ahmad",10000,3000,"43");
ACCOUNT p2= new CheckingAccount("Checking","Ali",20000,0 ,"0021");
ACCOUNT p3= new CheckingAccount("Checking","Mona",15000,0 ,"0033");
ArrayList <ACCOUNT> ACCOUNTList = new ArrayList<ACCOUNT>();
ACCOUNTList.add(p1);
ACCOUNTList.add(p2);
ACCOUNTList.add(p3);
我尝试在列表中搜索特定名称(如果它在列表中),然后打印该对象。
【问题讨论】:
-
I try to search a specific name on the list if it's on the list then print the object.- 我看不到你在哪里尝试过。