我正在做一个命令行界面,我正在尝试显示帐户属性和地址列表,但它只是编译。我想我做错了但我找不到。
if (entity.equalsIgnoreCase("account")) {
//if the user types in show account a list of
//addresses and the attributes from account
//should print out
for (Address ad: adList) {
if (te.equalsIgnoreCase(a.getAccountNumber())) {
System.out.println("type: " + ad.getType());
System.out.println("Account:");
System.out.println(c.getMailingAddress().getAccount().getAddresses());
}
}
}