类的用法:
private ArrayList encoallist = new ArrayList();
EnCoal ecoal = new EnCoal();
ecoal.typeid = oneorglist.getRow(0).get("typeid","");
ecoal.address = oneorglist.getRow(0).get("address");
ecoal.cer1 = oneorglist.getRow(0).get("cer1");
ecoal.cer2 = oneorglist.getRow(0).get("cer2");
ecoal.cer3 = oneorglist.getRow(0).get("cer3");
ecoal.cer4 = oneorglist.getRow(0).get("cer4");
ecoal.cer5 = oneorglist.getRow(0).get("cer5");
ecoal.cer6 = oneorglist.getRow(0).get("cer6");
encoallist.add(ecoal);
for (int i = 0; i < encoallist.size(); i++) {
EnCoal ec = encoallist.get(i);
......
}
阅读(575) | 评论(0) | 转发(0) |