但我用如下的方法添加后,再取出时报错啊: Iterator iter = list.iterator(); List zlist = new ArrayList(); while (iter.hasNext()) { String text = iter.next().toString(); text = text.substring(0,text.length()-1) + ", SELL_SUM="+sell_sum; text = text + "}"; zlist.add(text); } 还请指点!
Iterator iter = list.iterator();
List zlist = new ArrayList();
while (iter.hasNext())
{
String text = iter.next().toString();
text = text.substring(0,text.length()-1) + ", SELL_SUM="+sell_sum;
text = text + "}";
zlist.add(text);
}
还请指点!