如何在main方法xml文件中显示属性

时间:2015-11-14 21:02:22

标签: xml-parsing

我正在做一个命令行界面,我正在尝试显示帐户属性和地址列表,但它只是编译。我想我做错了但我找不到。

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());
        }    
    }
}

0 个答案:

没有答案